The embedded font in the Alert font-family property does not work in Flex 4

I am using Flex 4. I am trying to apply a built-in font in all components of the Alert application to get the same style as the whole application, of course.

Code in my CSS file:

@font-face
{ 
fontFamily: "Trebuchet MS";
src: url("resources/Trebuchet MS.ttf");
embedAsCFF: true;
}
mx|Alert{   
font-family: "Trebuchet MS";
} 
s|ButtonBase, s|TextBase, s|TextInput, mx|Label{
font-family: "Trebuchet MS";
color:"#000000";
}

The font family worked with all components, but not with the Alert component. In the warning, the text message and the title became invisible. If I switch to another font family, it works correctly, only the embedded font does not work with the Alert component. Has anyone got this problem?

Obs: the built-in font worked throughout the application, only an alert.

+3
source share
1 answer

, Alert MX, Spark. MX 4 .

, textFieldClass MX:

mx|global
{
    textFieldClass: ClassReference("mx.core.UIFTETextField");
}
+5

Source: https://habr.com/ru/post/1786972/


All Articles