git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AIR] Font of loaded swf is lost


The embedding of one font might bring in the EmbeddedFontRegistry classes into the main ApplicationDomain so they are shared among all sub-SWFs.  You could probably have success just force-linking EmbeddedFontRegistry and not have to embed the font.

https://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-799a.html

Note also that using sub-applications is heavier than using modules, so if you are going to refactor you might be better off using modules.  Once you get set up with EmbeddedFontRegistry in the main ApplicationDomain, things should work without extra work on your part.

HTH,
-Alex

On 4/24/18, 12:19 PM, "Olaf Krueger" <mail@xxxxxxxxxxxxxxx> wrote:

    I just noticed that if I just add one ttf font file to the shell/booloader
    app and I also define it within the styles section, it works!
    Even if I just define one font-face in the shell app, all other fonts (e.g.
    Flatspark) of the loaded SWF are working now. Magic...
    
    Thanks to all for your help!
    
    Olaf
    
    [1]
    @font-face {
    	src: url("fonts/raleway/Raleway-Light.ttf");
    	fontFamily: "RalewayLight";
    }	
    
    
    
    --
    Sent from: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-flex-users.2333346.n4.nabble.com%2F&data=02%7C01%7Caharui%40adobe.com%7C0af741712b8346ddcdc008d5aa183fa9%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636601943563109093&sdata=IY0qKsf0sJRadtL9Otp50KXPRkwhNaaQOTO6QJwkdzs%3D&reserved=0
    



( ! ) Warning: include(msgfooter.php): failed to open stream: No such file or directory in /var/www/git/apache-flex-development/msg02499.html on line 100
Call Stack
#TimeMemoryFunctionLocation
10.0007364568{main}( ).../msg02499.html:0

( ! ) Warning: include(): Failed opening 'msgfooter.php' for inclusion (include_path='.:/var/www/git') in /var/www/git/apache-flex-development/msg02499.html on line 100
Call Stack
#TimeMemoryFunctionLocation
10.0007364568{main}( ).../msg02499.html:0