Flex Embed Font

Website / Blog : www.how-to-code.com

Contact : This e-mail address is being protected from spambots. You need JavaScript enabled to view it

Embed a Local Font from CSS

To Embed a local font in Flex using CSS you will first need to create your CSS file. Once created specify your local font using the following @font-face. And say you wish to access your embeded font from the CSS use font-family:ArialEmbed to access it.

 

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
@font-face{
src:local("Arial");
font-family:ArialEmbed;
font-weight:bold;
}
 
/** To access the font use font-family:ArialEmbed; **/
 
.mainButtonStyle{
skin:ClassReference(null);
font-family:ArialEmbed;
text-roll-over-color:#990000;
font-size:16;
}