X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Frfxswf.h;h=4ca38a28b9cb03d9e7895d2cc7718e48e0d7a2fe;hb=e633c982297e1728e8373f80d25533776a9b92b0;hp=0baf61e093377659477a0b0c3d652e4e9660d7c2;hpb=4e514da68a127743aaa789f00145037f04179306;p=swftools.git diff --git a/lib/rfxswf.h b/lib/rfxswf.h index 0baf61e..4ca38a2 100644 --- a/lib/rfxswf.h +++ b/lib/rfxswf.h @@ -530,12 +530,24 @@ typedef struct SHAPE * shape; } SWFGLYPH; +typedef struct _SWFGLYPHPAIR +{ + U16 char1; + U16 char2; +} SWFGLYPHPAIR; + typedef struct _FONTUSAGE { int* chars; char is_reduced; int used_glyphs; int glyphs_specified; U16 smallest_size; + + SWFGLYPHPAIR* neighbors; + int num_neighbors; + int neighbors_size; + int* neighbors_hash; + int neighbors_hash_size; } FONTUSAGE; #define FONT_STYLE_BOLD 1 @@ -631,6 +643,8 @@ int swf_FontReduce_swfc(SWFFONT * f); int swf_FontInitUsage(SWFFONT * f); int swf_FontUseGlyph(SWFFONT * f, int glyph, U16 size); +void swf_FontUsePair(SWFFONT * f, int char1, int char2); +int swf_FontUseGetPair(SWFFONT * f, int char1, int char2); int swf_FontUseAll(SWFFONT* f); int swf_FontUseUTF8(SWFFONT * f, U8 * s, U16 size); int swf_FontUse(SWFFONT* f,U8 * s);