[Laszlo-dev] add font loading from runtime libraries

Henry Minsky henry.minsky at gmail.com
Tue Jan 30 18:16:26 PST 2007


Oops, that was some dead code, I ended up just using the existing
LzLibraryLoader machinery, I'll send you the updated changeset.



On 1/30/07, Max Carlson <max at openlaszlo.org> wrote:
>
> Methinks you forgot to add
> WEB-INF/lps/lfc/kernel/swf/LzDynamicLibraryLoader.as
>
> Henry Minsky wrote:
> > Change 20070130-hqm-a by hqm at IBM-112E6A12815 on 2007-01-30 16:12:35 EST
> >    in /cygdrive/c/users/hqm/openlaszlo/legals4
> >
> > Summary:  enable runtime font loading in snippets
> >
> > New Features: fonts may be compiled into runtime loaded library files
> >
> > Bugs Fixed:
> > LPP-3486 onload event never called in library loader
> > LPP-3485 support runtime font loading
> >
> >
> > Technical Reviewer: max (pending)
> > QA Reviewer: (pending)
> > Doc Reviewer: (pending)
> >
> > Documentation:
> >
> > adding a ImportAssets tag in the library file, which points to itself,
> > causes the fonts
> > to appear visible to the main app
> >
> >
> >
> >
> > Release Notes:
> >
> > Details:
> >
> > The compiler was modified to put the font in the snippet instead of
> putting
> > it in the main app.
> > Font gets installed in the font table when the snippet is loaded.
> >
> > There seems to be an issue with running this in non-SOLO apps, because
> the
> > URL of the library
> > when fetched via the LPS proxy is different than the SOLO URL  which is
> > compiled into the ImportAssets
> > tag. So the library is fetched twice, once proxied to be run by
> > loadMovie(),
> > and once SOLO as ImportAssets
> > scans it. But that's ok. No harm no foul.
> >
> >
> > + Added ImportAssets2 tag to Jgenerator.
> >
> > Tests:
> >
> > test/snippets/fontloader.lzx
> >
> > Files:
> > A      test/resources/ttf/KentuckyFriedChickenFont.ttf
> > A      test/snippets/fontloader.lzx
> > A      test/snippets/fontlib.lzx
> > M      test/snippets/index.html
> > M      WEB-INF/lps/lfc/kernel/swf/LzLibraryCleanup.lzs
> > M      WEB-INF/lps/lfc/kernel/swf/LzLibraryLoader.lzs
> > M      WEB-INF/lps/lfc/kernel/swf/LzFontManager.as
> > M      WEB-INF/lps/lfc/kernel/swf/Library.lzs
> > M      WEB-INF/lps/server/src/org/openlaszlo/compiler/ObjectWriter.java
> > M      WEB-INF/lps/server/src/org/openlaszlo/compiler/DHTMLWriter.java
> > M      WEB-INF/lps/server/src/org/openlaszlo/compiler/SWFWriter.java
> > M      WEB-INF/lps/server/src/org/openlaszlo/compiler/FontCompiler.java
> > M
> >
> WEB-INF/lps/server/src/org/openlaszlo/compiler/CompilationEnvironment.java
> >
> M      WEB-INF/lps/server/src/org/openlaszlo/compiler/ImportCompiler.java
> > A      WEB-INF/lps/server/jgenerator-2.2
> > /src/org/openlaszlo/iv/flash/api/ImportAssets2.java
> > M      WEB-INF/lps/server/jgenerator-2.2
> > /src/org/openlaszlo/iv/flash/api/ImportAssets.java
> > M      WEB-INF/lps/server/jgenerator-2.2
> > /src/org/openlaszlo/iv/flash/util/Tag.java
> > Changeset:
> http://svn.openlaszlo.org/openlaszlo/patches/20070130-hqm-a.tar
> >
> >
>
> --
> Regards,
> Max Carlson
> OpenLaszlo.org
>



-- 
Henry Minsky
Software Architect
hminsky at laszlosystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20070130/63e6ac95/attachment.html


More information about the Laszlo-dev mailing list