开发者

Can fonts embedded with StyleManager in Flex app be applied to AS3 components?

开发者 https://www.devze.com 2023-04-10 10:32 出处:网络
I\'m testing some font embedding in Flex 4. Using the tutorial below (modified a bit), I\'m loading in fonts via compiling CSS into SWFs.

I'm testing some font embedding in Flex 4. Using the tutorial below (modified a bit), I'm loading in fonts via compiling CSS into SWFs.

http://www.softwarebyrichard.com/content/embedding-fonts-flex-4

When I apply those styles to my Flex components all is well, however, I need to add an AS3 component to my Flex app. This component has some Flash text fields in it. The only way I know to embed fonts in AS3 is completely different and I believe requires another load. What I want to know is if there is any way that the text fields in my AS3 component can use the same styles and embedded fonts that the Flex components are using. This would make my life a whole lot easier (and my app smaller I believe). Thanks开发者_如何学C.


Sadly, I don't think this is possible. StyleManager encodes fonts in its own ecosystem which is not compatible with Flash embedded font system. However, the reverse should be possible. You should be able to embed fonts in Flash and use their font references in your Flex application. See the below article on the step-by-step details:

http://livedocs.adobe.com/flex/3/html/help.html?content=fonts_09.html

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号