tag = swf_InsertTag(tag,ST_DEFINETEXT);
swf_SetU16(tag, 33); //id
- swf_SetDefineText(tag, font, &rgb, "Password:", 20);
+ swf_SetDefineText(tag, font, &rgb, "Password:", 20, 0);
tag = swf_InsertTag(tag,ST_PLACEOBJECT2);
m.tx = width/2*20;
swf_SetString(tag,text);
}
-SRECT swf_SetDefineText(TAG*tag, SWFFONT*font, RGBA*rgb, char*text, int scale)
+SRECT swf_SetDefineText(TAG*tag, SWFFONT*font, RGBA*rgb, char*text, int scale, MATRIX* m)
{
SRECT r;
U8 gbits, abits;
}
swf_SetRect(tag,&r);
- swf_SetMatrix(tag,NULL);
+ swf_SetMatrix(tag,m);
swf_TextCountBitsUTF8(font,text,scale*20,&gbits,&abits);
swf_SetU8(tag,gbits);
swf_SetU8(tag,abits);
text_internal_t*ti = (text_internal_t*)self->data;
self->tag= swf_InsertTag(0, ST_DEFINETEXT2);
swf_SetU16(self->tag, /*ID*/0);
- ti->bbox = swf_SetDefineText(self->tag, ti->swffont, &ti->rgba, ti->text, ti->size);
+ ti->bbox = swf_SetDefineText(self->tag, ti->swffont, &ti->rgba, ti->text, ti->size, 0);
return 1;
}
static PyObject* text_getattr(tag_internals_t*self,char*a)
void swf_SetEditText(TAG*tag, U16 flags, SRECT r, char*text, RGBA*color,
int maxlength, U16 font, U16 height, EditTextLayout*layout, char*variable);
-SRECT swf_SetDefineText(TAG*tag, SWFFONT*font, RGBA*rgb, char*text, int scale);
+SRECT swf_SetDefineText(TAG*tag, SWFFONT*font, RGBA*rgb, char*text, int scale, MATRIX* m);
void swf_DrawText(drawer_t*draw, SWFFONT*font, int size, char*text);
s_box(name, 0, 0, black, 20, 0);
return;
}
- r = swf_SetDefineText(tag, font, &color, text, size);
+ r = swf_SetDefineText(tag, font, &color, text, size, 0);
s_addcharacter(name, id, tag, r);
incrementid();