summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParth Wazurkar <parthwazurkar@gmail.com>2018-06-03 21:09:22 +0530
committerParth Wazurkar <parthwazurkar@gmail.com>2018-07-03 01:57:09 +0530
commit59f6af025dc266c673b3384e246d42ef1fe1b727 (patch)
tree91194a458d09cccf1b8370f642baad473af14177
parent56b81c93f0147a8e695fb3e62bc2c60ce8aa2b82 (diff)
downloadfreetype2-59f6af025dc266c673b3384e246d42ef1fe1b727.tar.gz
[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.
-rw-r--r--src/gf/gfdrivr.c2
-rw-r--r--src/gf/gfdrivr.h33
2 files changed, 18 insertions, 17 deletions
diff --git a/src/gf/gfdrivr.c b/src/gf/gfdrivr.c
index c0f4274e6..0c767ac14 100644
--- a/src/gf/gfdrivr.c
+++ b/src/gf/gfdrivr.c
@@ -134,7 +134,7 @@
FT_Memory memory;
- if ( !face )
+ if ( !face h )
return;
memory = FT_FACE_MEMORY( face );
diff --git a/src/gf/gfdrivr.h b/src/gf/gfdrivr.h
index 365084e68..9d8afb788 100644
--- a/src/gf/gfdrivr.h
+++ b/src/gf/gfdrivr.h
@@ -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;
+ FT_UInt bbx_width, bbx_height;
+ FT_UInt off_x, off_y;
+ FT_UInt mv_x, mv_y;
+ unsigned char *bitmap;
+ FT_UInt raster;
+
} GF_BitmapRec, *GF_Bitmap;
-
- typedef struct GF_Glyph_
+
+ 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;