Posts tagged as:

fontFamily

The following example shows how you can use an embedded font with the MX AdvancedDataGrid control in Flex 4 by setting the embedAsCFF and fontFamily styles.

[click to continue…]

{ 5 comments }

The following example shows how you can use an embedded font with the Flex LinkButton control by setting the fontFamily and fontWeight styles.

The LinkButton control uses a bold font weight by default, so you need to either embed the bold font weight, or set the LinkButton control’s fontWeight style to normal.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can set different fonts for different items in a Flex ComboBox control’s dropdown menu by using a custom item renderer.

Full code after the jump.

[click to continue…]

{ 14 comments }

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.

[click to continue…]

{ 0 comments }

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.

[click to continue…]

{ 0 comments }

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.

[click to continue…]

{ 0 comments }

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.

[click to continue…]

{ 0 comments }

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.

[click to continue…]

{ 0 comments }

Using embedded fonts with the NumericStepper control in Flex

by Peter deHaan May 18, 2008

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.

Read the full article →

Using embedded fonts with the Panel container in Flex

by Peter deHaan February 28, 2008

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 [...]

Read the full article →

Using embedded fonts in a Flex DataGrid control

by Peter deHaan February 12, 2008

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.

Read the full article →

Embedding fonts in a Flex application using Embed metadata

by Peter deHaan February 7, 2008

The following example shows how you can embed a font using ActionScript and the [Embed] metadata.
Full code after the jump.

Read the full article →