You may be right about sharpness/anti-aliasing :). I only used it with a
single font/style, but could see no reason for why I couldn't have defined
multiple formats and then pass a "format id" to the function that 1)
populates the metrics field, 2) applies the (appropriate) format, and 3)
returns the width of the auto-sized metrics field. 

Too bad the metrics functionality isn't working well.. this is a bit of a
kludge, but I guess works (just like removing whitespace from a string has
to be done in convoluted way in lack of RegEx in AS2). 

Ville

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of erixtekila
Sent: Tuesday, June 27, 2006 13:33
To: Flashcoders mailing list
Subject: Re: [Flashcoders] getTextExtent weirdness

> Primarily the "main" formatting characteristics such as font name, 
> size and
> style if applicable; with embedded/bitmap fonts the style is what it 
> is, of
> course. Anti aliasing or sharpness likely are not going to make a big
> difference in the width, and they do not apply anyway with bitmap 
> fonts.

Try it on some fonts, you'll be amazed ;)


> You could, of course, make multiple metrics fields, one for each
> typeface/size/style you want to measure, but just as well there can be 
> just
> one off-stage field that is set to whatever style settings you want to
> currently measure.

Isn't it a pain for dynamic apps ?
Hm, let me try.
Thanks.


-----------
erixtekila
http://blog.v-i-a.net/

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to