[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.
This commit is contained in:
Parth Wazurkar 2018-06-02 00:37:40 +05:30
parent d40152c275
commit 9de5de08ab
1 changed files with 21 additions and 8 deletions

View File

@ -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
/* 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_encoding_el_
{
FT_Long enc;
FT_UShort glyph;
} GF_encoding_el;
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;