I vaguely remember this problem but I don't think I ever solved it because I
decided that I didn't want embeded fonts my button anyway.  I think it had
something to do with the fact that the button was placing the label by
measuring a system font instead of an embeded font.  Make sure the embeded
font wasn't given the same name as a system font on your computer.  If that
doesn't work you're going to have to step through some code to see what is
wrong, specifically:

Button.mx_internal::layoutContents() - where the label is actually placed
UITextFormat.measure() - where the text metrics are created

sorry I couldn't give any more help,

- Dan

On 1/24/07, evert_dennis <[EMAIL PROTECTED]> wrote:

  I'm trying to create an Actionscript class that extends Button.
Everything works great except for when a different font is embedded
the label moves up a few pixels. How can I reposition the label
inside the button so that it is centered again? Do I really have to
extend UIComponent instead of Button just because of label positioning?

Reply via email to