Posts tagged as:

mimeType

Embedding fonts in Flex 4

by Peter deHaan on October 15, 2008

in Embed, Fonts, beta

The following example shows how you can embed a font in the Flex 4 and use the embedded font with the new Spark RichEditableText class.

Full code after the jump.

[click to continue…]

{ 26 comments }

In a previous example, “Embedding fonts in a Flex application using Embed metadata”, we saw how you could embed fonts using the [Embed] metadata with the source attribute.

The following example shows how you can embed system fonts in a Flex application using the [Embed] metadata with the systemFont attribute.

Full code after the jump.

[click to continue…]

{ 7 comments }

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

Full code after the jump.

[click to continue…]

{ 9 comments }

OK, I learnt this trick a few weeks ago from a co-worker. A user emailed me and asked if it was possible to embed an HTML/text file in a Flex application rather than having to load the files at runtime, similar to how you can embed images or whatnot.

Not being certain, I asked the team and got this response…

Full code after the jump.

[click to continue…]

{ 0 comments }