|
|
|
@ -579,12 +579,12 @@ |
|
|
|
|
if ( vertical ) |
|
|
|
|
{ |
|
|
|
|
metrics->horiBearingX = FT_PIX_FLOOR( metrics->horiBearingX ); |
|
|
|
|
metrics->horiBearingY = FT_PIX_CEIL ( metrics->horiBearingY ); |
|
|
|
|
metrics->horiBearingY = FT_PIX_CEIL_LONG( metrics->horiBearingY ); |
|
|
|
|
|
|
|
|
|
right = FT_PIX_CEIL( ADD_LONG( metrics->vertBearingX, |
|
|
|
|
metrics->width ) ); |
|
|
|
|
bottom = FT_PIX_CEIL( ADD_LONG( metrics->vertBearingY, |
|
|
|
|
metrics->height ) ); |
|
|
|
|
right = FT_PIX_CEIL_LONG( ADD_LONG( metrics->vertBearingX, |
|
|
|
|
metrics->width ) ); |
|
|
|
|
bottom = FT_PIX_CEIL_LONG( ADD_LONG( metrics->vertBearingY, |
|
|
|
|
metrics->height ) ); |
|
|
|
|
|
|
|
|
|
metrics->vertBearingX = FT_PIX_FLOOR( metrics->vertBearingX ); |
|
|
|
|
metrics->vertBearingY = FT_PIX_FLOOR( metrics->vertBearingY ); |
|
|
|
@ -599,13 +599,13 @@ |
|
|
|
|
metrics->vertBearingX = FT_PIX_FLOOR( metrics->vertBearingX ); |
|
|
|
|
metrics->vertBearingY = FT_PIX_FLOOR( metrics->vertBearingY ); |
|
|
|
|
|
|
|
|
|
right = FT_PIX_CEIL ( ADD_LONG( metrics->horiBearingX, |
|
|
|
|
metrics->width ) ); |
|
|
|
|
right = FT_PIX_CEIL_LONG( ADD_LONG( metrics->horiBearingX, |
|
|
|
|
metrics->width ) ); |
|
|
|
|
bottom = FT_PIX_FLOOR( SUB_LONG( metrics->horiBearingY, |
|
|
|
|
metrics->height ) ); |
|
|
|
|
|
|
|
|
|
metrics->horiBearingX = FT_PIX_FLOOR( metrics->horiBearingX ); |
|
|
|
|
metrics->horiBearingY = FT_PIX_CEIL ( metrics->horiBearingY ); |
|
|
|
|
metrics->horiBearingY = FT_PIX_CEIL_LONG( metrics->horiBearingY ); |
|
|
|
|
|
|
|
|
|
metrics->width = SUB_LONG( right, |
|
|
|
|
metrics->horiBearingX ); |
|
|
|
@ -613,8 +613,8 @@ |
|
|
|
|
bottom ); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
metrics->horiAdvance = FT_PIX_ROUND( metrics->horiAdvance ); |
|
|
|
|
metrics->vertAdvance = FT_PIX_ROUND( metrics->vertAdvance ); |
|
|
|
|
metrics->horiAdvance = FT_PIX_ROUND_LONG( metrics->horiAdvance ); |
|
|
|
|
metrics->vertAdvance = FT_PIX_ROUND_LONG( metrics->vertAdvance ); |
|
|
|
|
} |
|
|
|
|
#endif /* GRID_FIT_METRICS */ |
|
|
|
|
|
|
|
|
|