(For your enjoyment, an updated changeset, responding to all of the
suggestions from the last one.)
Change 20070627-ben-L by [EMAIL PROTECTED] on 2007-06-27 10:35:39 PDT
in /Users/ben/src/svn/openlaszlo/branches/legals
for http://svn.openlaszlo.org/openlaszlo/branches/legals
Summary: [UPDATED] Improve text rendering in swf8, add api for text
rendering hints
New Features: new api on LzText to control swf8 rendering parameters
Bugs Fixed:
Technical Reviewer: max (pending), ptw (pending)
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Added four new virtual attributes to LzText, each of which control an
aspect
of advanced text rendering in swf8: sharpness, thickness, antiAliasType,
and gridFit. These attributes only have an effect in swf8; in other
runtimes,
they will quietly be no-ops. We provide set/get for each of these new
virtual
attributes, and give them good initial and default values.
Note that the default values are set such that <text>boring</text> will
use normal rendering, because advanced rendering causes a performance
hit. To
get the advanced rendering, just set antiAliasType="advanced" on the
text
object.
Added capability "advancedfonts" for these text rendering attributes;
made it
true for swf, false for dhtml.
Release Notes:
To get advanced rendering in swf8, just set antiAliasType="advanced"
on a text
object.
Details:
Tests:
http://localhost:8080/legals/test/lztest/lztest-textstyle.lzx?
lzr=swf8&debug=true
sussurate should look good but blurry. mimsy borogroves should look
not great.
"i should look bad" and "pixel gridfit" should have weird color bands
around the text
http://localhost:8080/legals/test/lztest/lztest-textstyle.lzx?
lzr=swf8&debug=true
all the text should look the same
"ant doc" still works
http://localhost:8080/legals/test/text/renderingcomparison.lzx?lzr=swf8
should look really cool, with each of the text objects in the top
three
rows looking slightly different.
Files:
M test/lztest/lztest-textstyle.lzx
M test/text/renderingcomparision.lzx
M test/text/fonts.lzx
M WEB-INF/lps/schema/lzx.rnc
M WEB-INF/lps/lfc/kernel/swf/LzTextSprite.as
M WEB-INF/lps/lfc/kernel/swf/LzSprite.as
M WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
M WEB-INF/lps/lfc/views/LzText.lzs
Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20070627-ben-
L.tar