Change 20090927-maxcarlson-T by [email protected] on 2009-09-27  
00:44:20 PDT
     in /Users/maxcarlson/openlaszlo/trunk-clean
     for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Add preliminary @font-face support to DHTML

New Features: DHTML font embedding

Bugs Fixed: LPP-8313 - Support for downloadable fonts in DHTML (@font- 
face inclusion of OpenType or TTF fonts)

Technical Reviewer: ptw
QA Reviewer: [email protected]

Documentation: DHTML now supports Truetype font embedding for browsers  
that    support it.

Release Notes: DHTML now supports Truetype font embedding for browsers  
that support it.

Details: LzFontManager - Add implementation of fontmanager.

LzSprite - Write CSS during canvas sprite initialization, to guarantee  
approot  has been set and sprite paths can be correctly determined.

Library - Include LzFontManager

DHTMLWriter - Use a StringBuffer to accumulate scripts, instead of  
a            PrintWriter.  Avoid converting to strings wherever  
possible to reduce memory    footprint.  Prepend resource table to the  
front of the generated script to      guarantee fonts are all  
available before canvas init time.

Tests: See LPP-8313.  Testcase loads the font, but the initial text  
measurement is off because the font takes a while to load.  Not sure  
how to work around this...

Files:
A       WEB-INF/lps/lfc/kernel/dhtml/LzFontManager.js
M       WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
M       WEB-INF/lps/lfc/kernel/dhtml/Library.lzs
M       WEB-INF/lps/server/src/org/openlaszlo/compiler/DHTMLWriter.java

Changeset: 
http://svn.openlaszlo.org/openlaszlo/patches/20090927-maxcarlson-T.tar
_______________________________________________
Laszlo-reviews mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-reviews

Reply via email to