git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more windows fixes
[swftools.git]
/
lib
/
ttf.h
diff --git
a/lib/ttf.h
b/lib/ttf.h
index
a5ca523
..
932f5e8
100644
(file)
--- a/
lib/ttf.h
+++ b/
lib/ttf.h
@@
-54,7
+54,6
@@
typedef struct _table_os2 {
S16 xAvgCharWidth;
U16 usWeightClass;
U16 usWidthClass;
S16 xAvgCharWidth;
U16 usWeightClass;
U16 usWidthClass;
- U16 fsType;
U16 ySubscriptXSize;
U16 ySubscriptYSize;
U16 ySubscriptXOffset;
U16 ySubscriptXSize;
U16 ySubscriptYSize;
U16 ySubscriptXOffset;
@@
-77,7
+76,6
@@
typedef struct _table_os2 {
U8 panose_Midline;
U8 panose_XHeight;
U32 ulCharRange[4];
U8 panose_Midline;
U8 panose_XHeight;
U32 ulCharRange[4];
- U8 achVendID[4];
U16 fsSelection;
U16 fsFirstCharIndex;
U16 fsSelection;
U16 fsFirstCharIndex;
@@
-103,9
+101,6
@@
typedef struct _table_os2 {
typedef struct _table_hea
{
typedef struct _table_hea
{
- S16 ascent;
- S16 descent;
- S16 lineGap;
U16 advanceWidthMax;
S16 minLeftSideBearing;
S16 minRightSideBearing;
U16 advanceWidthMax;
S16 minLeftSideBearing;
S16 minRightSideBearing;
@@
-144,16
+139,33
@@
typedef struct _table_head {
S16 dir_hint;
} table_head_t;
S16 dir_hint;
} table_head_t;
+typedef struct _table_post {
+ U16 italic_angle;
+ U16 underline_position;
+ U16 underline_thickness;
+} table_post_t;
+
typedef struct _ttf {
typedef struct _ttf {
+ char*full_name;
+ char*family_name;
+ char*subfamily_name;
+ char*version_string;
+
ttf_table_t*tables;
table_head_t*head;
table_maxp_t*maxp;
table_os2_t*os2;
table_hea_t*hea;
ttf_table_t*tables;
table_head_t*head;
table_maxp_t*maxp;
table_os2_t*os2;
table_hea_t*hea;
+ table_post_t*post;
U16 flags;
char is_vertical;
U16 flags;
char is_vertical;
+
+ S16 ascent;
+ S16 descent;
+ S16 lineGap;
+
int num_glyphs;
ttfglyph_t*glyphs;
int num_glyphs;
ttfglyph_t*glyphs;
@@
-164,7
+176,14
@@
typedef struct _ttf {
} ttf_t;
} ttf_t;
-ttf_t*load_ttf(void*data, int length);
+ttf_t*ttf_new();
+void ttf_reduce(ttf_t*ttf);
+ttf_t*ttf_load(void*data, int length);
ttf_table_t*ttf_addtable(ttf_t*ttf, U32 tag);
ttf_table_t*ttf_addtable(ttf_t*ttf, U32 tag);
+void ttf_create_truetype_tables(ttf_t*ttf);
+void ttf_dump(ttf_t*ttf);
+void ttf_destroy(ttf_t*ttf);
+void ttf_save(ttf_t*ttf, const char*filename);
+void ttf_save_eot(ttf_t*ttf, const char*filename);
#endif
#endif