freetype-commit
[Top][All Lists]
Advanced

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

[freetype2] parthw-cleaned 78af8da 5/8: [gf] *src/gf/gfdrivr.h Defined G


From: Parth Wazurkar
Subject: [freetype2] parthw-cleaned 78af8da 5/8: [gf] *src/gf/gfdrivr.h Defined GF_FaceRec and other format specific structures.
Date: Sat, 2 Jun 2018 07:17:26 -0400 (EDT)

branch: parthw-cleaned
commit 78af8dab79feec20829005cd1083711caa7eafc1
Author: Parth Wazurkar <address@hidden>
Commit: Parth Wazurkar <address@hidden>

    [gf] *src/gf/gfdrivr.h Defined GF_FaceRec and other format specific 
structures.
    
    - Defined GF_FaceRec.
    - Defined GF_BitmapRec and GF_Glyph structures to properly distinguish 
format specific values.
---
 src/gf/gfdrivr.h | 31 ++++++++++++++++++++++---------
 1 file changed, 22 insertions(+), 9 deletions(-)

diff --git a/src/gf/gfdrivr.h b/src/gf/gfdrivr.h
index 6aec4cc..64d5784 100644
--- a/src/gf/gfdrivr.h
+++ b/src/gf/gfdrivr.h
@@ -6,7 +6,6 @@
 /*                                                                         */
 /*  Copyright 1996-2018 by                                                 */
 /*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
-/*  Copyright 2007 Dmitry Timoshkov for Codeweavers                        */
 /*                                                                         */
 /*  This file is part of the FreeType project, and may only be used,       */
 /*  modified, and distributed under the terms of the FreeType project      */
@@ -28,19 +27,33 @@
 
 FT_BEGIN_HEADER
 
-
-  typedef struct  GF_encoding_el_
-  {
-    FT_Long    enc;
-    FT_UShort  glyph;
-    
-  } GF_encoding_el;
+       /* BitmapRec for GF format specific glyphs  */
+       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;
+       
+
+       typedef struct GF_Glyph_ 
+       {
+               int         code_min, code_max; 
+               VF_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;
 
 
   typedef struct  GF_FaceRec_
   {
     FT_FaceRec        root;
-    //TO-DO
+    GF_Glyph          gf_glyph;
+    GF_BitmapRec      gf_bitmap;
+    
   } GF_FaceRec, *GF_Face;
 
 



reply via email to

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