freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] parthw-wip 0f9ef77 14/23: [gf] Changed to FT data types in s


From: Parth Wazurkar
Subject: [freetype2] parthw-wip 0f9ef77 14/23: [gf] Changed to FT data types in structures.
Date: Wed, 27 Jun 2018 11:53:24 -0400 (EDT)

branch: parthw-wip
commit 0f9ef776f05a530229ca6912641361244b549831
Author: Parth Wazurkar <address@hidden>
Commit: Parth Wazurkar <address@hidden>

    [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.
---
 src/gf/gfdrivr.c |  2 +-
 src/gf/gfdrivr.h | 33 +++++++++++++++++----------------
 2 files changed, 18 insertions(+), 17 deletions(-)

diff --git a/src/gf/gfdrivr.c b/src/gf/gfdrivr.c
index c0f4274..0c767ac 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 365084e..9d8afb7 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;
 
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]