[Laszlo-user] Dynamic Font Loading
Rich Christiansen
rich at byu.net
Thu Feb 28 16:16:43 PST 2008
Thanks for your response, Henry. One remaining question. Is the
<import> tag only available in proxied (non-SOLO) apps? I can see that
to use the import tag, we point it at an LZX file, which I imagine would
need to be compiled - and thus, the question. :)
Thanks,
-Rich
Henry Minsky wrote:
> 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
> <mailto: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 <mailto:hminsky at laszlosystems.com>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20080228/e4343b9c/attachment.html
More information about the Laszlo-user
mailing list