[Laszlo-dev] For Review: Change 20070626-ben-3 Summary: Improve default text rendering in swf8, add api for text rendering hints
Max Carlson
max at openlaszlo.org
Wed Jun 27 10:06:34 PDT 2007
From our chat on IM:
in the setters, store the value.
Ben Shine
9:35
ah, i see. ok
Max Carlson
9:36
make sure the default value is set correctly.
and rather than having getters, have the API be reading the properties
Ben Shine
9:37
got it, cool.
Benjamin Shine wrote:
> I don't know the pattern you're describing -- can you be a bit more
> explicit, or show me an example?
>
> On Jun 26, 2007, at 11:25 PM, Max Carlson wrote:
>
>> One more thought: do you need getters for the sprites and LzText? Can
>> you get away with reading properties in LzText, and make sure they're
>> set to the correct default values? It's faster, and there's less code
>> to maintain that way...
>>
>> Benjamin Shine wrote:
>>> Change 20070626-ben-3 by ben at cooper.local on 2007-06-26 19:56:43 PDT
>>> in /Users/ben/src/svn/openlaszlo/branches/legals
>>> for http://svn.openlaszlo.org/openlaszlo/branches/legals
>>> Summary: Improve default 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)
>>> QA Reviewer: frisco (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 advanced rendering and subpixel gridfitting by default, with
>>> sharpness=0
>>> and thickness=0.
>>> Added capabilities for each of these text rendering attributes; made
>>> these
>>> capabilities true for swf, false for dhtml.
>>> Release Notes:
>>> 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
>>> Files:
>>> M test/lztest/lztest-textstyle.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/20070626-ben-3.tar
>>> Benjamin Shine
>>> Software Engineer, Open Laszlo / Laszlo Systems
>>> ben at laszlosystems.com
>>
>> --
>> Regards,
>> Max Carlson
>> OpenLaszlo.org
>
--
Regards,
Max Carlson
OpenLaszlo.org
More information about the Laszlo-dev
mailing list