I think you got the property wrong ...
Please try following code:
mx|FormItem{
labelStyleName: formItemLabel;
}
This works for me.
Cheers,
Naveen
On Mon, Jan 3, 2011 at 8:16 PM, Jim_Nastiq <[email protected]> wrote:
> Hi there,
>
> I'm trying to have custom font on a label of a formitem but can't make
> it work .
>
> here is my css :
>
> @font-face{
> src: url("/fonts/ChalkboardBold.ttf");
> fontFamily: "myFont";
> fontWeight: bold;
> }
>
> mx|FormItem{
> label-style-name: formItemLabel;
> }
>
> .formItemLabel{
> fontFamily: myFont;
> fontWeight: bold;
> color: #FFFFFF;
> font-size: 26;
> }
>
>
> With this code my label won't show up. If i comment the fontWeight or
> fontFamily text will show up but with default system font ... any
> ideas?
>
> Note that this font work perfectly with other labels of my
> application ...
>
> --
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<flex_india%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en.