[Laszlo-user] Dynamic Font Loading
Henry Minsky
henry.minsky at gmail.com
Thu Feb 28 13:47:45 PST 2008
Yes, it works now, if you include the font in a <import>'ed library, I
believe that when you load that
library at runtime, the font will become accessible.
It is done with a nasty Flash trick, the loadable library exports its own
assets, and then imports them. Fonts, being
global resources, end up imported into the parent application global font
namespace.
On Thu, Feb 28, 2008 at 2:34 PM, Rich Christiansen <rich at byu.net> wrote:
> Hey all!
>
> Is dynamic loading of fonts possible in OpenLaszlo? It doesn't seem that
> this is supported on an LZX level, but if I drop down into lower level
> scripting, can it be done? I'm working on an app that needs to access up to
> 50 fonts or so, and would really like to avoid including all of the fonts in
> the initial Laszlo download.
>
> Thanks! :)
> -Rich
>
--
Henry Minsky
Software Architect
hminsky at laszlosystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20080228/0d21bd93/attachment.html
More information about the Laszlo-user
mailing list