|
From: Justin C. <ju...@po...> - 2008-01-21 21:28:09
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Klaus Rechert wrote:
> Hi Justin,
>
> sorry for the late answer.
>
> The current code is alright. SWF is trying to efficiently encode information.
> In the Textrecord example:
>
> SWF_TEXT_HAS_X/Y flag NOT set means an offset of zero and saves 2 bytes per
> field.
Hmmm, I see what you're saying, but I think it's not working for (at
least) a simple use case. (i.e. when you WANT to move the pen position
to x = 0).
Quick example, let's say I want to create a text object with two lines
of text:
First line
Second line
So, I create the font object, then create the text object and assign it
properties (i.e. the font to use, height, color, etc).
Then I add the string "First line" to it.
Now I want to move the pen position down one line and back to the x
origin, so I can add the second string "Second line".
// Move to the appropriate Y position
SWFText_moveTo(text_object, 0, scaled_font_size);
But no, SWFText_moveTo() checks for the presence of 0 and then ignores
it, so the text ends up like:
First line
Second line
How do I move the pen position back to x of 0?
Not seeing how to do it with the present code base. :(
Can provide exact code having the above problem if you need, as it's a
Real World problem I hit recently. Heh.
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
iD8DBQFHlQ5nFAuZn5lS2IMRAs2KAJ4pHFveAlBiOg89cp6M/I0vUxGWPQCgyd20
czaTCSSaOhriZE3mCTg1huk=
=vKlB
-----END PGP SIGNATURE-----
|