i\'ve got a few fonts embedded and am using them in my mobile application, and they are all working, except for the ones i try to use for the \"ActionBar\". They work everywhere
Here's a stylesheet that i use to style mobile apps (Action Bar, TextAreas, Buttons, and Labels.) It's compiled from blogs and forum posts.
/* CSS file */
@namespace s "library://ns.adobe.com/flex/spark";
@font-face
{
src: url("styles/acmesab.TTF");
fontFamily: comicStrip;
embedAsCFF: false;
}
@font-face
{
src: url("styles/acmesab.TTF");
fontFamily: comicStrip2;
embedAsCFF: true;
}
s|ActionBar
{
chromeColor: #EEEEEE;
titleAlign: center;
defaultButtonAppearance: beveled;
}
s|ActionBar #titleDisplay
{
fontFamily: comicStrip;
fontWeight: normal;
color: #000000;
textShadowColor: #FFFFFF;
}
s|ActionBar.beveled s|Group#actionGroup s|Button
{
fontFamily: comicStrip;
fontWeight: normal;
color: #000000;
textShadowColor: #FFFFFF;
}
s|ActionBar.beveled s|Group#navigationGroup s|Button
{
fontFamily: comicStrip;
fontWeight: normal;
color: #000000;
textShadowColor: #FFFFFF;
}
.textArea
{
fontFamily: comicStrip;
fontSize: 14;
skinClass: ClassReference("spark.skins.mobile.TextAreaSkin");
}
.button
{
fontFamily: comicStrip;
fontSize: 14;
fontWeight: normal;
skinClass: ClassReference("spark.skins.mobile.ButtonSkin");
}
.label
{
fontFamily: comicStrip2;
fontSize: 14;
fontWeight: normal;
}