X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fttf.h;h=e5462e99cd5ed103663929063827e52e19c7193d;hp=76da9bafb64c2517dca72fb4120682e5c62309d9;hb=bdad407fb79c2f7be9f3603694ebdeadc645b52d;hpb=fdd99ebecfef4874ea12bc97839fa027a0e8ed2f diff --git a/lib/ttf.h b/lib/ttf.h index 76da9ba..e5462e9 100644 --- a/lib/ttf.h +++ b/lib/ttf.h @@ -122,7 +122,7 @@ typedef struct _ttfpoint { } ttfpoint_t; typedef struct _ttfglyph { U16 advance; - U16 bearing; + S16 bearing; S16 xmin,ymin,xmax,ymax; int code_size; U8*code; @@ -145,6 +145,24 @@ typedef struct _table_post { U16 underline_thickness; } table_post_t; +typedef struct _table_cvt { + S16*values; + int num; +} table_cvt_t; + +typedef struct _table_gasp { + int num; + struct { + U16 size; + U16 behaviour; + } *records; +} table_gasp_t; + +typedef struct _table_code { + U8*code; + int size; +} table_code_t; + typedef struct _ttf { char*family_name; /* nameId 1 */ char*subfamily_name; /* nameId 2 */ @@ -160,12 +178,16 @@ typedef struct _ttf { table_os2_t*os2; table_hea_t*hea; table_post_t*post; + table_cvt_t*cvt; + table_gasp_t*gasp; + table_code_t*prep; + table_code_t*fpgm; U16 flags; char is_vertical; S16 ascent; - S16 descent; + S16 descent; // ymin, *not* negative ymin S16 lineGap; int num_glyphs;