[gf] Fixes.

This commit is contained in:
Parth Wazurkar 2018-08-11 02:15:59 +05:30
parent 32028ffb55
commit eba29d801e
2 changed files with 12 additions and 3 deletions

View File

@ -436,6 +436,15 @@
slot->metrics.width = (FT_Pos) ( bitmap->width * 64 );
slot->metrics.height = (FT_Pos) ( bitmap->rows * 64 );
FT_TRACE2(( "Glyph metric values are: bm.bbx_height is %ld\n"
" bm.bbx_width is %ld\n"
" bm.off_x is %ld\n"
" bm.off_y is %ld\n"
" bm.mv_x is %ld\n"
" bm.mv_y is %ld\n", bm.bbx_height, bm.bbx_width,
bm.off_x, bm.off_y, bm.mv_x,
bm.mv_y ));
ft_synthesize_vertical_metrics( &slot->metrics, bm.bbx_height * 64 );
Exit:

View File

@ -30,9 +30,9 @@ FT_BEGIN_HEADER
/* BitmapRec for GF format specific glyphs */
typedef struct GF_BitmapRec_
{
FT_Int bbx_width, bbx_height;
FT_Int off_x, off_y;
FT_Int mv_x, mv_y;
FT_Long bbx_width, bbx_height;
FT_Long off_x, off_y;
FT_Long mv_x, mv_y;
FT_Byte *bitmap;
FT_UInt raster;