[tfm] Define TFM_FaceRec and other format specific structures.

* src/tfm/tfmdrivr.h: Define TFM_FaceRec also define
TFM_GlyphRec structure to properly distinguish format
specific values.
This commit is contained in:
Parth Wazurkar 2018-06-29 18:25:44 +05:30
parent a16b3b2199
commit 3c555bf991
1 changed files with 27 additions and 19 deletions

View File

@ -27,30 +27,38 @@
FT_BEGIN_HEADER
typedef struct s_tfm *TFM;
struct s_tfm {
/* Font Info */
int type; /* METRIC_TYPE_xxx */
int type_aux; /* METRIC_TYPE_AUX_xxx */
UINT4 cs;
/* Metrics */
UINT4 ds;
double design_size;
double slant;
unsigned int begin_char, end_char;
INT4 *width, *height, *depth;
unsigned int *ct_kcode, *ct_ctype; /* JFM only */
int nt; /* JFM only */
/* Font bounding box */
double font_bbx_w, font_bbx_h;
double font_bbx_xoff, font_bbx_yoff;
};
typedef struct TFM_BitmapRec_
{
FT_UInt bbx_width, bbx_height;
FT_UInt off_x, off_y;
FT_UInt mv_x, mv_y;
FT_Byte *bitmap;
FT_UInt raster;
} TFM_BitmapRec, *TFM_Bitmap;
typedef struct TFM_GlyphRec_
{
/* Font Info */
int type; /* METRIC_TYPE_xxx */
int type_aux; /* METRIC_TYPE_AUX_xxx */
UINT4 cs;
/* Metrics */
UINT4 ds;
double design_size;
double slant;
unsigned int begin_char, end_char;
INT4 *width, *height, *depth;
/* Font bounding box */
double font_bbx_w, font_bbx_h;
double font_bbx_xoff, font_bbx_yoff;
} TFM_GlyphRec, *TFM_Glyph;
typedef struct TFM_FaceRec_
{
FT_FaceRec root;
/* TO-DO */
TFM_Glyph tfm_glyph;
} TFM_FaceRec, *TFM_Face;