The following example shows how you can use an embedded font with the Flex ComboBox control by setting the fontFamily style and dropdownStyleName style.
Full code after the jump.
Continue reading ‘Using embedded fonts with the ComboBox control in Flex’
The following example shows how you can use an embedded font with the Flex ColorPicker control by setting the fontFamily style.
Full code after the jump.
Continue reading ‘Using an embedded font with the ColorPicker control in Flex’
The following example shows how you can use an embedded font with the Flex TabBar control by setting the fontFamily and fontWeight styles.
Full code after the jump.
Continue reading ‘Using an embedded font with the TabBar control in Flex’
The following example shows how you can use an embedded font with the Flex HSlider control by setting the fontFamily and labelStyleName styles.
Full code after the jump.
Continue reading ‘Using an embedded font with the Slider controls in Flex’
The following example shows how you can use an embedded font with the Flex ComboBox control by setting the fontFamily style.
Full code after the jump.
Continue reading ‘Using an embedded font with the ComboBox control in Flex’
The following example shows how you can use an embedded font with the Flex NumericStepper control by setting the fontFamily style.
Full code after the jump.
Continue reading ‘Using embedded fonts with the NumericStepper control in Flex’
The following example shows how you can use an embedded font with the Flex Panel container so that a Panel container can be rotated or faded without the text “disappearing”. The trick here is to set the panel’s titleStyleName style to a custom style which sets the font family to the embedded font.
Full code after the jump.
Continue reading ‘Using embedded fonts with the Panel container in Flex’
The following example shows how you can use embedded fonts with the DataGrid control in Flex.
Note that the DataGridColumn’s use a bold font by default, so you’ll either need to either embed both a normal and bold font weight, or else set the DataGrid control’s column font weight to normal.
Full code after the jump.
Continue reading ‘Using embedded fonts in a Flex DataGrid control’
The following example shows how you can embed a font using ActionScript and the [Embed] metadata.
Full code after the jump.
Continue reading ‘Embedding fonts in a Flex application using Embed metadata’
We’ve looked at general font embedding and unicode ranges before in previous examples (see “Embedding and animating fonts in a Flex application” and “Specifying certain unicode-ranges for embedded fonts”), but this example will show you how you can embed a named range of unicode characters into an application by editing your flex-config.xml file and specifying unicode ranges.
Full code after the jump.
Continue reading ‘Specifying custom named unicode ranges in Flex’
The following examples show how you can embed a font from a Flash SWF into a Flex application using @font-face in a <mx:Style /> block, or using the [Embed] metadata.
Full code after the jump.
Continue reading ‘Embedding fonts from a Flash SWF file into a Flex application’