css - Font loaded using StyleManager.loadStyleDeclarations is not applying in Flex4.11 -


Fonts are embedded using @ font-face in CSS and are generated as .swf files. In the application, the generated SWF file is loaded using the StyleManager.loadStyleDeclarations () method. Embedded fonts are not applied for the first time control but this application applies when reloading / refreshing.

Ex:

CSS file:

  @ font-face {src: url ("font \ GOTHICB.ttf"); EmbedAsCFF: True; FontFamily: Gothic; FontLookup: "embeddedCFF"; FontWeight: Normal; }  

In the ActionScript file:

  StyleManager.loadStyleDeclarations ("styles.swf", true, incorrect);  

Please tell me that I do not remember anything. Please share your thoughts thank you in advance.

Use the Filters source module URL to load font SFF:

Or you can write your own custom preloader and do it yourself.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -