Odd @font-face parsing in Flex 3 (bug?)
by Nicolas Noben
This works:
@font-face
{
src: url("assets/FontReg.ttf");
fontFamily: FontReg;
fontWeight: normal;
fontStyle: normal;
}
@font-face
{
src: url("assets/FontMed.ttf");
fontFamily: FontMed;
fontWeight: normal;
fontStyle: normal;
}
This won’t work properly (all ends BOLD):
@font-face {
src: url("assets/FontReg.ttf");
fontFamily: FontReg;
fontWeight: normal;
fontStyle: normal;
}
@font-face {
src: url("assets/FontMed.ttf");
fontFamily: FontMed;
fontWeight: normal;
fontStyle: normal;
}
Yeah. Not much to add. I believe it has to do with the way the flex compiler parses the style code.
Related Posts
- Database of snippets of code for AS3
- Subversion browser for your browser
- Google Web Toolkit - Build AJAX apps in the Java language
- Bespin - Web-based code editor from Mozilla
- Design and the Elastic Mind Exhibition

Stay focussed. Save to
Del.icio.us |
Reddit |
Stumble it |
Digg it

