Using Adobe® Flex® 4 - Adobe Blogs
Using Adobe® Flex® 4 - Adobe Blogs Using Adobe® Flex® 4 - Adobe Blogs
Resolved code-reference. @font-face { src: url(../assets/MyriadWebPro.ttf); fontFamily: myPlainFont; advancedAntiAliasing: true; embedAsCFF: true; } .myStyle1 { fontFamily: myPlainFont; fontSize:12pt }
tf1.font = "myPlainFont"; var tf2:TextFormat = new TextFormat(); tf2.font = "Arial"; b1 = FlexGlobals.topLevelApplication.systemManager. isFontFaceEmbedded(tf1); b2 = FlexGlobals.topLevelApplication.systemManager. isFontFaceEmbedded(tf2); } ]]> In this example, the font identified by the myPlainFont family name is embedded, but the Arial font is not. USING FLEX 4 Fonts You can use the Font class’s enumerateFonts() method to output information about device or embedded fonts. The following example lists embedded fonts: Resolved code-reference. @font-face { src:url("../assets/MyriadWebPro.ttf"); fontFamily: myFont; advancedAntiAliasing: true; embedAsCFF: true; } @font-face { src:url("../assets/MyriadWebPro-Bold.ttf"); fontFamily: myFont; fontWeight: bold; advancedAntiAliasing: true; embedAsCFF: true; } @font-face { src:url("../assets/MyriadWebPro-Italic.ttf"); fontFamily: myFont; fontStyle: italic; advancedAntiAliasing: true; 13
- Page 1 and 2: Chapter 1: Fonts You can include fo
- Page 3 and 4: Using device fonts [Output: IPH, Pr
- Page 5 and 6: USING FLEX 4 Fonts You can also emb
- Page 7 and 8: USING FLEX 4 Fonts Change the Butto
- Page 9 and 10: private var font2:Class; US
- Page 11: Style property Description fontGrid
- Page 15 and 16: USING FLEX 4 Fonts If you set the e
- Page 17 and 18: } @font-face { src:url("../assets/M
- Page 19 and 20: Setting character ranges [Output: I
- Page 21 and 22: englishRange U+0020-007E otherR
- Page 23 and 24: "' does not support these glyphs.\n
- Page 25 and 26: Resolved code-reference. @fo
- Page 27 and 28: Resolved code-reference. @f
- Page 29 and 30: FileSystemComboBox FileSystemHistor
- Page 31 and 32: Resolved code-reference. @fo
- Page 33: @font-face { src: url(../assets/Myr
Resolved code-reference.<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
@font-face {<br />
src: url(../assets/MyriadWebPro.ttf);<br />
fontFamily: myPlainFont;<br />
advancedAntiAliasing: true;<br />
embedAsCFF: true;<br />
}<br />
.myStyle1 {<br />
fontFamily: myPlainFont;<br />
fontSize:12pt<br />
}<br />
<br />