embedded font won't work in Flex mobile ActionBar

前端 未结 6 1943
一向
一向 2021-02-09 14:51

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条回答
  •  -上瘾入骨i
    2021-02-09 14:55

    I had the same problem for mx buton in flex4 what I did was mentioned font weight in both place as bold. Then it got working.

    
    
    @font-face
            { 
                src: url("assets/fonts/Quasari1.ttf");
                fontFamily: msd;
                embedAsCFF: true; 
                fontWeight : bold;
    
            }
    mx|Button{   
                fontFamily: msd;
                fontSize:22;
                color: red;
                fontWeight : bold;
                textFieldClass: ClassReference("mx.core.UIFTETextField"); 
            } 
    
    
    

提交回复
热议问题