You can embedded the font in your application. There are some file type of fonts:
You can embedded the font in your application. There are some file type of fonts:You can embedded the font in your application. There are
some file type of fonts:
1. True Type fonts (*.ttf)
2. Open Type fonts (*.otf)
3. True Type Collection (*.ttc)
4. Mac Data Fork Fonts (*.dfont)
Syntax of embedded font is:
@font-face {
src: url("location");
fontFamily: alias;
[fontStyle: normal | italic | oblique] ;
[fontWeight: normal | bold | heavy] ;
[embedAsCFF:true | false] ;
[advancedAntiAliasing: true | false];
}
In this example you can see how we can embedded a font in your application.
In this example we use a MyriadWebPro.ttf font.
|
<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"xmlns:s=" library://ns.adobe.com/flex/spark"xmlns:mx=" library://ns.adobe.com/flex/mx"minWidth=" 955" minHeight="600">} s|VGroup{} </s:Application> |

To view this page ensure that Adobe Flash Player version 10.0.0 or greater is installed.