X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fttf.h;h=932f5e8023fb5b5b0a67ccc8ee9e4674510b4a8a;hb=7fb4a4ac393f19a0b8a8998a2f1deac88c97eda0;hp=104ac787a6695db06e5076156bd340986da4108c;hpb=b27d77f8a6343e60e2d3ae2c22a8096a6357a927;p=swftools.git diff --git a/lib/ttf.h b/lib/ttf.h index 104ac78..932f5e8 100644 --- a/lib/ttf.h +++ b/lib/ttf.h @@ -139,8 +139,17 @@ 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; + char*full_name; + char*family_name; + char*subfamily_name; + char*version_string; ttf_table_t*tables; @@ -148,6 +157,7 @@ typedef struct _ttf { table_maxp_t*maxp; table_os2_t*os2; table_hea_t*hea; + table_post_t*post; U16 flags; char is_vertical; @@ -167,10 +177,13 @@ 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); 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