Approved. This looks like a nice clean solution. Nice work ferreting out the EditManager!
On 2011-04-07, at 13:26, Henry Minsky wrote: > Change hqm-20110407-YPy by [email protected] on 2011-04-07 13:19:26 EDT > in /Users/hqm/openlaszlo/trunk2 > for http://svn.openlaszlo.org/openlaszlo/trunk > > Summary: add support for setTextFormat and getTextFormat to swf10 kernel > > New Features: > > Bugs Fixed: LPP-9864 > > Technical Reviewer: ptw > QA Reviewer: (pending) > Doc Reviewer: (pending) > > Documentation: > > Release Notes: > > Overview: > > added code to LzTLFTextField to emulate the old flash TextField.setTextFormat > behavior > > Details: > > LzTLFTextField: added setTextFormat and getTextFormat methods. they translate > between > old TextFormat struct and the new Adobe TLF TextLayoutFormat class. I managed > to discover the right methods on the EditManager 'interaction manager' which > support applying format to a range of characters. > > > > Tests: > > test/tlf/setformat demonstrates applying some format to the selection range > of a > bidi text view. > > > Files: > A test/tlf/setformat.lzx > M WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as > M WEB-INF/lps/lfc/kernel/swf9/LzTLFTextField.as > > Changeset: http://svn.openlaszlo.org/openlaszlo/patches/hqm-20110407-YPy.tar
