开发者

how to PostScript True Type 1 mac font embed into flex application?

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" />
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜