TAG*mtag = i->swf->firstTag;
if(iterator->swffont) {
mtag = swf_InsertTag(mtag, ST_DEFINEFONT2);
- if(!i->config_storeallcharacters)
+ if(!i->config_storeallcharacters) {
+ msg("<debug> Reducing font %s", iterator->swffont->name);
swf_FontReduce(iterator->swffont);
+ }
swf_FontSetDefine2(mtag, iterator->swffont);
}
static void swfoutput_setlinewidth(gfxdevice_t*dev, double _linewidth)
{
swfoutput_internal*i = (swfoutput_internal*)dev->internal;
- if(i->linewidth == (U16)(_linewidth*20))
+ if(i->linewidth == (U16)(_linewidth*20+19))
return;
-
if(i->shapeid>=0)
endshape(dev);
- i->linewidth = (U16)(_linewidth*20);
+ i->linewidth = (U16)(_linewidth*20+19);
}
i->config_bboxvars = atoi(value);
} else if(!strcmp(name, "insertstop")) {
i->config_insertstoptag = atoi(value);
- } else if(!strcmp(name, "protected")) {
+ } else if(!strcmp(name, "protect")) {
i->config_protect = atoi(value);
+ if(i->config_protect && i->tag) {
+ i->tag = swf_InsertTag(i->tag, ST_PROTECT);
+ }
} else if(!strcmp(name, "faketags")) {
i->config_generate_fake_tags = atoi(value);
} else if(!strcmp(name, "flashversion")) {
i->config_flashversion = atoi(value);
+ if(i->swf) {
+ i->swf->fileVersion = i->config_flashversion;
+ }
} else if(!strcmp(name, "minlinewidth")) {
i->config_minlinewidth = atof(value);
} else if(!strcmp(name, "caplinewidth")) {
return line;
}
-#define NORMALIZE_POLYGON_POSITIONS
+//#define NORMALIZE_POLYGON_POSITIONS
static void swf_stroke(gfxdevice_t*dev, gfxline_t*line, gfxcoord_t width, gfxcolor_t*color, gfx_capType cap_style, gfx_joinType joint_style, gfxcoord_t miterLimit)
{
m.m22 = i->fontm22;
m.m31 = matrix->tx;
m.m32 = matrix->ty;
+
+/* printf("%f %f\n", m.m31, m.m32);
+ {
+ static int xpos = 40;
+ static int ypos = 200;
+ m.m31 = xpos;
+ m.m32 = ypos;
+ xpos += 10;
+ }*/
+
+
drawchar(dev, i->swffont, glyph, &m, color);
}