X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Frfxswf.h;h=0baf61e093377659477a0b0c3d652e4e9660d7c2;hb=d016fb9a0dd752b541a45830ec55516ada425944;hp=f5868490fc7b7d063277b7434b96063b6ff85a90;hpb=275179c87d277416cfcc0d7a346ed60c4545ba31;p=swftools.git diff --git a/lib/rfxswf.h b/lib/rfxswf.h index f586849..0baf61e 100644 --- a/lib/rfxswf.h +++ b/lib/rfxswf.h @@ -245,6 +245,9 @@ int swf_SetU32(TAG * t,U32 v); void swf_SetF16(TAG * t,float f); void swf_SetString(TAG*t,const char*s); +float floatToF16(float f); +float F16toFloat(U16 x); + /* abc datatypes */ U32 swf_GetU30(TAG*tag); int swf_SetU30(TAG*tag, U32 u); @@ -532,6 +535,7 @@ typedef struct _FONTUSAGE char is_reduced; int used_glyphs; int glyphs_specified; + U16 smallest_size; } FONTUSAGE; #define FONT_STYLE_BOLD 1 @@ -540,6 +544,10 @@ typedef struct _FONTUSAGE #define FONT_ENCODING_ANSI 2 #define FONT_ENCODING_SHIFTJIS 4 +#define FONTALIGN_THIN 0 +#define FONTALIGN_MEDIUM 1 +#define FONTALIGN_THICK 2 + typedef struct _ALIGNZONE { U16 x,y; @@ -622,9 +630,9 @@ int swf_FontReduce(SWFFONT * f); int swf_FontReduce_swfc(SWFFONT * f); int swf_FontInitUsage(SWFFONT * f); -int swf_FontUseGlyph(SWFFONT * f, int glyph); +int swf_FontUseGlyph(SWFFONT * f, int glyph, U16 size); int swf_FontUseAll(SWFFONT* f); -int swf_FontUseUTF8(SWFFONT * f, U8 * s); +int swf_FontUseUTF8(SWFFONT * f, U8 * s, U16 size); int swf_FontUse(SWFFONT* f,U8 * s); int swf_FontSetDefine(TAG * t,SWFFONT * f);