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.
source
share