X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fttf.h;h=d37f745404b8e5f5a2fb3401092f69e48cf7a114;hb=6487933fe6b496bb04cd287b51b96af6b7d97058;hp=73bd35cf06322915809594504d16dd0c3075bd90;hpb=4c389168a91bf083e434885fbfd8f51c6dab56fc;p=swftools.git diff --git a/lib/ttf.h b/lib/ttf.h index 73bd35c..d37f745 100644 --- a/lib/ttf.h +++ b/lib/ttf.h @@ -139,13 +139,22 @@ typedef struct _table_head { 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 { + char*name; + 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; @@ -165,6 +174,7 @@ typedef struct _ttf { 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); void ttf_create_truetype_tables(ttf_t*ttf);