@ -353,7 +353,8 @@
FT_Byte c , count ;
FT_Vector * vec , * vec_limit ;
FT_Pos x , y ;
FT_Short * cont , * cont_limit , last ;
FT_UShort * cont , * cont_limit ;
FT_Int last ;
/* check that we can add the contours to the glyph */
@ -372,7 +373,7 @@
last = - 1 ;
for ( ; cont < cont_limit ; cont + + )
{
* cont = FT_NEXT_SHORT ( p ) ;
* cont = FT_NEXT_U SHORT ( p ) ;
if ( * cont < = last )
goto Invalid_Outline ;
@ -530,8 +531,8 @@
* flag = ( FT_Byte ) ( f & ON_CURVE_POINT ) ;
}
outline - > n_points = ( FT_Short ) n_points ;
outline - > n_contours = ( FT_Short ) n_contours ;
outline - > n_points = ( FT_U Short ) n_points ;
outline - > n_contours = ( FT_U Short ) n_contours ;
load - > cursor = p ;
@ -752,10 +753,8 @@
FT_UInt start_point ,
FT_UInt start_contour )
{
zone - > n_points = ( FT_UShort ) load - > outline . n_points + 4 -
( FT_UShort ) start_point ;
zone - > n_contours = load - > outline . n_contours -
( FT_Short ) start_contour ;
zone - > n_points = load - > outline . n_points + 4 - ( FT_UShort ) start_point ;
zone - > n_contours = load - > outline . n_contours - ( FT_UShort ) start_contour ;
zone - > org = load - > extra_points + start_point ;
zone - > cur = load - > outline . points + start_point ;
zone - > orus = load - > extra_points2 + start_point ;
@ -1044,7 +1043,7 @@
current . points = gloader - > base . outline . points +
num_base_points ;
current . n_points = gloader - > base . outline . n_points -
( s hort) num_base_points ;
( FT_US hort) num_base_points ;
have_scale = FT_BOOL ( subglyph - > flags & ( WE_HAVE_A_SCALE |
WE_HAVE_AN_XY_SCALE |
@ -1057,7 +1056,7 @@
/* get offset */
if ( ! ( subglyph - > flags & ARGS_ARE_XY_VALUES ) )
{
FT_UInt num_points = ( FT_UInt ) gloader - > base . outline . n_points ;
FT_UInt num_points = gloader - > base . outline . n_points ;
FT_UInt k = ( FT_UInt ) subglyph - > arg1 ;
FT_UInt l = ( FT_UInt ) subglyph - > arg2 ;
FT_Vector * p1 ;
@ -1719,8 +1718,8 @@
FT_List_Add ( & loader - > composites , node ) ;
}
start_point = ( FT_UInt ) gloader - > base . outline . n_points ;
start_contour = ( FT_UInt ) gloader - > base . outline . n_contours ;
start_point = gloader - > base . outline . n_points ;
start_contour = gloader - > base . outline . n_contours ;
/* for each subglyph, read composite header */
error = face - > read_composite_glyph ( loader ) ;
@ -1872,7 +1871,7 @@
linear_hadvance = loader - > linear ;
linear_vadvance = loader - > vadvance ;
num_base_points = ( FT_UInt ) gloader - > base . outline . n_points ;
num_base_points = gloader - > base . outline . n_points ;
error = load_truetype_glyph ( loader ,
( FT_UInt ) subglyph - > index ,
@ -1896,7 +1895,7 @@
loader - > vadvance = linear_vadvance ;
}
num_points = ( FT_UInt ) gloader - > base . outline . n_points ;
num_points = gloader - > base . outline . n_points ;
if ( num_points = = num_base_points )
continue ;
@ -2717,7 +2716,7 @@
size - > metrics - > y_ppem < 24 )
glyph - > outline . flags | = FT_OUTLINE_HIGH_PRECISION ;
FT_TRACE1 ( ( " subglyphs = %u, contours = %hd, points = %hd , "
FT_TRACE1 ( ( " subglyphs = %u, contours = %hu, points = %hu , "
" flags = 0x%.3x \n " ,
loader . gloader - > base . num_subglyphs ,
glyph - > outline . n_contours ,