Hi Alex,
Thank you for the help... you always have time to say something.. that is
admirable!
The FontMetrics class have all the information about of the font on this case:-
underlineOffset- underlineThickness
I tried to fake it (maybe wrongly)!
I create a class with the same name and same package on the src, hoping that
the compiler will use my class instead the one on the sdk, with this
constructor, code example:
public function FontMetrics(emBox:Rectangle, strikethroughOffset:Number,
strikethroughThickness:Number, underlineOffset:Number,
underlineThickness:Number, subscriptOffset:Number, subscriptScale:Number,
superscriptOffset:Number, superscriptScale:Number) {
this.emBox = emBox;
this.strikethroughOffset = strikethroughOffset;
this.strikethroughThickness = strikethroughThickness;
this.subscriptOffset = subscriptOffset;
this.subscriptScale = subscriptScale;
this.superscriptOffset = superscriptOffset;
this.superscriptScale = superscriptScale;
this.underlineOffset = 0; this.underlineThickness
= 10; }
but when i trace the the underline properties i never the 0 and 10.
Even if the compiler get the project class instead of the SDK i also don't know
if the text line engine will use this values...
If someone have some idea... they are welcome!
Thank you,Miguel
> From: [email protected]
> To: [email protected]
> Date: Thu, 27 Jun 2013 13:04:43 -0700
> Subject: Re: Text flow underline
>
> I don't know for sure, but you can try manipulating the fontMetrics. See
> flash.text.engine.FontMetrics
>
> On 6/27/13 7:30 AM, "Miguel Ferreira" <[email protected]>
> wrote:
>
> >Hi guys,
> >i have a question :)
> >Can we set the padding between letter and the underline?
> >maybe 2 questions!
> >Can we set the thickness of the underline?
> >
> >Thanks!
>