I've just posted two files to help improve text rendering in Open Laszlo 3.4 and lzr=swf8, using Flash Player 8 text rendering features. What does it look like? Check it out here:
http://wiki.openlaszlo.org/Image:Textsmoother_sample.png

A detailed description of the code and the code itself are on the wiki:
http://wiki.openlaszlo.org/TextSmoother
http://wiki.openlaszlo.org/Textsmoother.lzx
http://wiki.openlaszlo.org/Nicetext-test.lzx

One is textsmoother.lzx, which you can include inside the <canvas> tag of an lzx file, and it will automagically turn on advanced font rendering for all <text> objects with embedded fonts. The second file is an example of using this drop-in. The example *must be run with lzr=swf8*

If you just want the simplest improvement, just download textsmoother.lzx, then include it as the first line inside your canvas tag: <include href="textsmoother.lzx" />

Even better support for this feature is coming soon in Legals, and a similar drop-in is coming soon for Open Laszlo 3.3. Let me know what you think, and especially if you have any improvements to suggest.

-ben



Benjamin Shine
Software Engineer, Open Laszlo / Laszlo Systems
[EMAIL PROTECTED]



Reply via email to