Skip to content

Instantly share code, notes, and snippets.

@braindeaf
Created January 22, 2009 13:27
Show Gist options
  • Save braindeaf/50536 to your computer and use it in GitHub Desktop.
Save braindeaf/50536 to your computer and use it in GitHub Desktop.
Embedding a font in Flex
<mx:Style>
@font-face {
font-family: Copacetix;
src: url("assets/copacetix.ttf");
unicode-range:
U+0020-U+0040, /* Punctuation, Numbers */
U+0041-U+005A, /* Upper-Case A-Z */
U+005B-U+0060, /* Punctuation and Symbols */
U+0061-U+007A, /* Lower-Case a-z */
U+007B-U+007E; /* Punctuation and Symbols */
}
.MyTextStyle {
font-family: Copacetix;
font-size: 24pt;
}
</mx:Style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment