X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Frfxswf.h;h=e37fda073645636a159ca05fb75594766ce9a92e;hb=7169758cfe50bc9fa3bbbf75a1859d9a6fb58776;hp=3621321b4d885500530b59e24f89bfdefe9c6f4a;hpb=a6f4bf74f964e101e25f0234ebcb3c3dde175df4;p=swftools.git diff --git a/lib/rfxswf.h b/lib/rfxswf.h index 3621321..e37fda0 100644 --- a/lib/rfxswf.h +++ b/lib/rfxswf.h @@ -586,7 +586,9 @@ int swf_TextSetCharRecord(TAG * t,SWFFONT * font,U8 * s,int scale,U8 gbits,U8 ab int swf_TextPrintDefineText(TAG * t,SWFFONT * f); // Prints text defined in tag t with font f to stdout -/* notice: if you set the fontid, make sure the corresponding font has layout information */ +void swf_FontPrepareForEditText(SWFFONT * f); + +/* notice: if you set the fontid, make sure you call swf_FontPrepareForEditText() for the font first */ void swf_SetEditText(TAG*tag, U16 flags, SRECT r, char*text, RGBA*color, int maxlength, U16 font, U16 height, EditTextLayout*layout, char*variable); @@ -600,6 +602,8 @@ SWFFONT* swf_LoadTrueTypeFont(char*filename); SWFFONT* swf_LoadT1Font(char*filename); SWFFONT* swf_LoadFont(char*filename); +void swf_SetLoadFontParameters(int scale, int skip_unused, int full_unicode); + // swfdump.c void swf_DumpHeader(FILE * f,SWF * swf);