embedded font won't work in Flex mobile ActionBar

前端 未结 6 1108
执念已碎
执念已碎 2021-02-09 14:33

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

6条回答
  •  清酒与你
    2021-02-09 14:58

    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;
    }
    

提交回复
热议问题