Embedded Fonts in Flex
Category: Flex Examples | 4,366 views | 3 Comments
Panel 1 is a column chart declared in the main application and Panel 2 is the exact same column chart in a module. There is an embedded font ‘Verdana’ in the main application.
Charting.mxml
<?xml version=”1.0? encoding=”utf-8??>
<mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml” layout=”horizontal” xmlns:local=”*”>
<mx:Style>
Application
{
font-family: Verdana;
}
@font-face {
src:url(”font/verdana.ttf”);
fontFamily: Verdana;
advancedAntiAliasing: true;
}
@font-face {
src:url(”font/verdanab.ttf”);
fontFamily: Verdana;
fontWeight: bold;
advancedAntiAliasing: true;
}
@font-face {
src:url(”font/verdanai.ttf”);
fontFamily: Verdana;
font-style: italic;
advancedAntiAliasing: true;
}
</mx:Style>
<local:ColumnChart width=”50%” height=”100%” title=”Chart 1?/>
<mx:ModuleLoader url=”ChartModule.swf” width=”50%” height=”100%”/>
</mx:Application>
- What is Flex?
- Flex Component Kit
- Flex 3 Cookbook
- Flex Ajax Bridge
- Rich Internet applications (RIAs)
- Flex Tricks
- Exception Handling with BlazeDS and Flex
- Handling Java Exceptions in Flex application
- styling the last button in a buttonbar control in flex
- Flex Using Data Binding to Configure Validators







