freetype-commit
[Top][All Lists]
Advanced

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

[freetype2] parthw-wip ca39e50 05/17: [gf] *src/gf/gfdrivr.h Defined GF_


From: Parth Wazurkar
Subject: [freetype2] parthw-wip ca39e50 05/17: [gf] *src/gf/gfdrivr.h Defined GF_FaceRec and other format specific structures.
Date: Wed, 13 Jun 2018 07:52:37 -0400 (EDT)

branch: parthw-wip
commit ca39e505817f494ab868a525812e70bd8c0fb533
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]