Can't get WebDings font to work in Flex?
I want to add the WebDings font to my Flex application. The f开发者_如何学Pythonolder structure is:
assets
> style.css
> WebDings.ttf
src
> MyApp.mxml
In my style.css file I have:
@font-face {
src: url("WebDings.ttf");
fontFamily: webdings;
embedAsCFF: true;
}
s|global {
font-family: webdings;
}
However all my Spark components show up as Times New Roman. Does anyone know how I can get this working please?
src: url("WebDings.ttf");
should be src: url("assets/WebDings.ttf");
try adding something like that:
Application { font-family: WebDings; }
move assets folder to in the src folder and do this src: url("assets/WebDings.ttf"); or leave the folder where it is and include the path into your build path.
精彩评论