I have the vinyl regular exten开发者_如何学运维sion of PostScript True Type 1 mac font. How can I embed into my flex application?
Here's the Adobe online write up on embedding fonts.
I typically put my font files in my /assets/fonts/ folder, but it's up to you where you put it.
Example:
@font-face {
src: url("assets/fonts/my-font.ttf");
fontFamily: MyFontName;
embedAsCFF:true;
}
Using the font:
<s:Label text="Hello world!" fontFamily="MyFontName" />
精彩评论