flex4 - flex: how to embed fonts for Spark FormItem? -


here css (flex4.6)

/* css file */ @namespace mx "library://ns.adobe.com/flex/mx"; @namespace s "library://ns.adobe.com/flex/spark";   @font-face {     src:url("assets/myriadwebpro.ttf");     fontfamily: mycfffont;     embedascff: true; }  @font-face {     src:url("assets/myriadwebpro.ttf");     fontfamily: myfontnocff;     embedascff: false; } mx|application{     fontfamily: myfontnocff; } mx|button {     fontfamily: myfontnocff; } mx|label{     fontfamily: myfontnocff;     }  s|application {     fontfamily: mycfffont; } s|formitem {     fontfamily: mycfffont;     fontstyle:normal;     fontweight:normal; }  global {     fontfamily: mycfffont; } 

this ok labels, buttons etc... except formitems:

<s:formitem  width="346" label="{lang.msg_enter_nickname}"> 

these formitem render not embed fonts.

what doing wrong ?

regards

i encountered problem, it's bug in sdk (https://issues.apache.org/jira/browse/flex-26380). tried find workaround didn't. use mx:formitem instead spark.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -