[Laszlo-dev] add font loading from runtime libraries UPDATED

Max Carlson max at openlaszlo.org
Wed Jan 31 11:39:16 PST 2007


I get several compilation errors when I try to apply the patch:

compile:
     [javac] Compiling 518 source files to 
/Users/maxcarlson/openlaszlo/legals/WEB-INF/lps/server/build
     [javac] 
/Users/maxcarlson/openlaszlo/legals/WEB-INF/lps/server/jgenerator-2.2/src/org/openlaszlo/iv/flash/api/ImportAssets2.java:231: 
'class' or 'interface' expected
     [javac] package org.openlaszlo.iv.flash.api;
     [javac] ^
     [javac] 
/Users/maxcarlson/openlaszlo/legals/WEB-INF/lps/server/jgenerator-2.2/src/org/openlaszlo/iv/flash/api/ImportAssets2.java:233: 
'class' or 'interface' expected
     [javac] import java.io.PrintStream;
     [javac] ^
     [javac] 
/Users/maxcarlson/openlaszlo/legals/WEB-INF/lps/server/jgenerator-2.2/src/org/openlaszlo/iv/flash/api/ImportAssets2.java:234: 
'class' or 'interface' expected
     [javac] import org.openlaszlo.iv.flash.parser.*;
     [javac] ^
     [javac] 
/Users/maxcarlson/openlaszlo/legals/WEB-INF/lps/server/jgenerator-2.2/src/org/openlaszlo/iv/flash/api/ImportAssets2.java:235: 
'class' or 'interface' expected
     [javac] import org.openlaszlo.iv.flash.util.*;
     [javac] ^
     [javac] 
/Users/maxcarlson/openlaszlo/legals/WEB-INF/lps/server/jgenerator-2.2/src/org/openlaszlo/iv/flash/api/ImportAssets2.java:236: 
'class' or 'interface' expected
     [javac] import org.openlaszlo.iv.flash.commands.*;
     [javac] ^
     [javac] 
/Users/maxcarlson/openlaszlo/legals/WEB-INF/lps/server/jgenerator-2.2/src/org/openlaszlo/iv/flash/api/ImportAssets2.java:237: 
'class' or 'interface' expected
     [javac] import org.openlaszlo.iv.flash.context.Context;
     [javac] ^
     [javac] 6 errors

I get different errors when I untar files.tar...

-Max

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:
> 
> 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 ImportAsset
> 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-b.tar
> 

-- 
Regards,
Max Carlson
OpenLaszlo.org


More information about the Laszlo-dev mailing list