|
From: Justin C. <ju...@po...> - 2008-01-22 00:45:53
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Klaus Rechert wrote: > Hi, > >> But no, SWFText_moveTo() checks for the presence of 0 and then ignores >> it, so the text ends up like: >> >> First line >> Second line >> > > Have you tried that? If thats the case specs are wrong (which is not a suprise > btw...). Yeah. Only noticed the problem because it goes wonky like that. :( Just now went and retested to be sure, and yep, both the official Adobe flash player (9.0.115.0) and Gnash (0.8.1 - AGG renderer) go wonky. > Specs say: "If there is no XOffset specified, the offset is assumed to be > zero." Perhaps it's an "interpretation" thing? They could be meaning the "assumed to be zero" as (badly worded) "assumed to have no change", but somehow it got into the spec as you have it. My workaround at the moment is to do this: current_ming_scale = Ming_getScale(); Ming_setScale(1); SWFText_moveTo(text_object, 1, 0); Ming_setScale(current_ming_scale); So it moves the pen to one twip of 0. But it's pretty non-optimal to not be able to get back to 0 itself. *sigh* Regards and best wishes, Justin Clift > Klaus > - -- The Flame Project - Open Source GUI for animated SVG & Flash http://www.flameproject.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHlTyxFAuZn5lS2IMRAvp1AKCfvbF0O2qaKs30liwRMMiL9oGqcgCgqzvk JjeIL+xiGRYq1Ll/hCmw3X8= =cKWf -----END PGP SIGNATURE----- |