This content has been marked as final. Show 3 replies
"mchtower" <email@example.com> wrote in message
> I'm having trouble setting the fontFamily property of a button contained
> in an
> itemrenderer. The font in question is embedded via a css file in my main
> application file like so: <mx:Style source="assets/default.css" />.
> Then, in my itemrenderer I try to set the font to a font embedded in
> default.css but the font is not being used when I run the app. Can someone
> me what am I doing wrong? Here is the itemrenderer code:
The button control uses the bold version of the font.
Most Flex controls use the regular (non-bold, non-italic) font, but some controls, like the Button control, use the bold font by default.
So embed the bold font and have the font family refer to that embedded bold font.
Amy and Greg,
Thanks for your replies. I don't have the bold version of the font so I set the fontWeight to normal on the itemrenderer's button and that took care of it.