I have several built-in fonts and I use them in my mobile application, and they all work, except for the ones that I'm trying to use for an "ActionBar". They work everywhere, and substituting "Comic Sans MS" for "titleCGF" changes it to Comic Sans. So why won't it work with my custom font Family?
<fx:Style> @namespace s "library://ns.adobe.com/flex/spark"; @font-face { src: url("assets/Comic_Book.ttf"); fontFamily: comic; embedAsCFF: false; } /****************************** @font-face{ src: url("assets/CGF_Locust_Resistance.ttf"); fontFamily: titleCGF; embedAsCFF: false; } @font-face{ src: url("assets/CGF_Locust_Resistance.ttf"); fontFamily: titleCGF; embedAsCFF: true; } **********************************/ .titleStyle{ fontFamily: titleCGF; color: #FFFFFF; } .comicMessage{ fontFamily: titleCGF; color: #838689; fontSize: 14; } s|IconItemRenderer{ fontFamily: comic; color: #FEBA03; fontSize:18; } s|ActionBar{ defaultButtonAppearance: beveled; accentColor: #FEBA03; } s|ActionBar #titleDisplay{ fontFamily: "titleCGF"; } </fx:Style>
here is what i get:

EDIT: I tried to create my own skin, and part of the pre-written code is this:
when I try to define something like the first three, <s:Group .../> , it works fine. But nothing appears for spark.core.IDisplayText. those. <s:IDisplayText .../> does nothing ...
source share