[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] parthw-wip ca9e387 1/4: [tfm] Improve data types of variable
From: |
Parth Wazurkar |
Subject: |
[freetype2] parthw-wip ca9e387 1/4: [tfm] Improve data types of variables in `TFM_FontInfoRec' |
Date: |
Sun, 5 Aug 2018 07:33:17 -0400 (EDT) |
branch: parthw-wip
commit ca9e387ccb10625cd83605799da0c5d53486e2c1
Author: Parth Wazurkar <address@hidden>
Commit: Parth Wazurkar <address@hidden>
[tfm] Improve data types of variables in `TFM_FontInfoRec'
---
include/freetype/internal/tfm.h | 33 ++++++++++++++++++++-------------
1 file changed, 20 insertions(+), 13 deletions(-)
diff --git a/include/freetype/internal/tfm.h b/include/freetype/internal/tfm.h
index 7462e01..b29b6cf 100644
--- a/include/freetype/internal/tfm.h
+++ b/include/freetype/internal/tfm.h
@@ -50,12 +50,12 @@ FT_BEGIN_HEADER
/* Metrics */
FT_ULong ds, fs; /* Design Size */
FT_UInt design_size;
- FT_UInt slant;
+ FT_ULong slant;
FT_UInt begin_char, end_char;
FT_Long *width, *height, *depth;
/* Font bounding box */
- FT_UInt font_bbx_w, font_bbx_h;
- FT_UInt font_bbx_xoff, font_bbx_yoff;
+ FT_Long font_bbx_w, font_bbx_h;
+ FT_Long font_bbx_xoff, font_bbx_yoff;
} TFM_FontInfoRec, *TFM_FontInfo;
@@ -71,6 +71,22 @@ FT_BEGIN_HEADER
typedef struct TFM_ParserRec_* TFM_Parser;
+ typedef struct TFM_Parser_FuncsRec_
+ {
+ FT_Error
+ (*init)( TFM_Parser parser,
+ FT_Memory memory,
+ FT_Stream stream );
+
+ FT_Error
+ (*parse_metrics)( TFM_Parser parser );
+
+ void
+ (*done)( TFM_Parser parser );
+
+ } TFM_Parser_FuncsRec;
+
+
/**************************************************************************
*
* @struct:
@@ -112,16 +128,7 @@ FT_BEGIN_HEADER
typedef struct TFM_ServiceRec_
{
- FT_Error
- (*init)( TFM_Parser parser,
- FT_Memory memory,
- FT_Stream stream );
-
- FT_Error
- (*parse_metrics)( TFM_Parser parser );
-
- void
- (*done)( TFM_Parser parser );
+ const TFM_Parser_FuncsRec* tfm_parser_funcs;
} TFM_ServiceRec, *TFM_Service;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] parthw-wip ca9e387 1/4: [tfm] Improve data types of variables in `TFM_FontInfoRec',
Parth Wazurkar <=