[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] parthw-wip 06ffe8c 5/6: [tfm] Define TFM_FaceRec and other f
From: |
Parth Wazurkar |
Subject: |
[freetype2] parthw-wip 06ffe8c 5/6: [tfm] Define TFM_FaceRec and other format specific structures. |
Date: |
Fri, 29 Jun 2018 08:59:15 -0400 (EDT) |
branch: parthw-wip
commit 06ffe8ce4e491f339242edc67801ff708ac45795
Author: Parth Wazurkar <address@hidden>
Commit: Parth Wazurkar <address@hidden>
[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.
---
src/tfm/tfmdrivr.h | 46 +++++++++++++++++++++++++++-------------------
1 file changed, 27 insertions(+), 19 deletions(-)
diff --git a/src/tfm/tfmdrivr.h b/src/tfm/tfmdrivr.h
index 459a598..1d3c60c 100644
--- a/src/tfm/tfmdrivr.h
+++ b/src/tfm/tfmdrivr.h
@@ -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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] parthw-wip 06ffe8c 5/6: [tfm] Define TFM_FaceRec and other format specific structures.,
Parth Wazurkar <=