[gf] Changed to FT data types in structures.

* src/gf/gfdrivr.h: Changed data types in GF_FaceRec, Gf_GlyphRec and GF_BitmapRec to FT data types.
This commit is contained in:
Parth Wazurkar 2018-06-03 21:09:22 +05:30
parent 56b81c93f0
commit 59f6af025d
2 changed files with 19 additions and 18 deletions

View File

@ -134,7 +134,7 @@
FT_Memory memory;
if ( !face )
if ( !face h )
return;
memory = FT_FACE_MEMORY( face );

View File

@ -28,32 +28,33 @@
FT_BEGIN_HEADER
/* BitmapRec for GF format specific glyphs */
typedef struct GF_BitmapRec_
typedef struct GF_BitmapRec_
{
int bbx_width, bbx_height;
int off_x, off_y;
int mv_x, mv_y;
unsigned char *bitmap;
int raster;
} GF_BitmapRec, *GF_Bitmap;
FT_UInt bbx_width, bbx_height;
FT_UInt off_x, off_y;
FT_UInt mv_x, mv_y;
unsigned char *bitmap;
FT_UInt raster;
typedef struct GF_Glyph_
} GF_BitmapRec, *GF_Bitmap;
typedef struct GF_GlyphRec_
{
int code_min, code_max;
GF_BITMAP bm_table;
double ds, hppp, vppp;
int font_bbx_w, font_bbx_h;
int font_bbx_xoff, font_bbx_yoff;
} GF_Glyph, *GF_Glyph;
FT_UInt code_min, code_max;
GF_BITMAP bm_table;
double ds, hppp, vppp;
FT_UInt font_bbx_w, font_bbx_h;
FT_UInt font_bbx_xoff, font_bbx_yoff;
} GF_GlyphRec, *GF_Glyph;
typedef struct GF_FaceRec_
{
FT_FaceRec root;
GF_Glyph gf_glyph;
GF_BitmapRec gf_bitmap;
} GF_FaceRec, *GF_Face;