You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
putcircle_with_text(SWFShape shape, int x, int y) {
SWFShape_MovePenTo(x,y);
SWFShape_drawCircle(shape, 10);
SWFShape_MovePen(10,10);
SWFShape_drawSizedGlyph(shape, 'A', 10);
}
and then call putcircle_with_text with varying values of x and y. That
however puts text in very odd places. This is because when pasting the
glyph drawing events, the scale is applied to the offset as well, not
only to the relative glyph drawing events. Here is a patch that works
for me.
The text was updated successfully, but these errors were encountered:
Samuel Thibault 2009-01-16 12:27:26 EST
Created an attachment (id=18) [details]
fix
Hello,
I typically do something like
putcircle_with_text(SWFShape shape, int x, int y) {
SWFShape_MovePenTo(x,y);
SWFShape_drawCircle(shape, 10);
SWFShape_MovePen(10,10);
SWFShape_drawSizedGlyph(shape, 'A', 10);
}
and then call putcircle_with_text with varying values of x and y. That
however puts text in very odd places. This is because when pasting the
glyph drawing events, the scale is applied to the offset as well, not
only to the relative glyph drawing events. Here is a patch that works
for me.
The text was updated successfully, but these errors were encountered: