[futurebasic] Re: [FB] OutlineFontMetrics?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 2004 : Group Archive : Group : All Groups

From: Robert Covington <artlythere@...>
Date: Tue, 15 Jun 2004 01:57:38 -0400
I'm sorry, that should be OutlineMetrics, not OutlineFontMetrics.

Just re-reading back IM-Text ref on that. (sorry for any confusion)


r
c
On Tuesday, June 15, 2004, at 12:34  AM, Robert Covington wrote:

> Anybody have an example of  OutlineFontMetrics in action?
>
> I need to get the left-side bearing for some characters in a string.
>
> I think that returns all that in an array for the string in question.
>
> Charwidth returns the 'advance width' for a character. Left-side 
> bearing is how far over to the right  the glyph is from the pure left 
> of the it's Advance width rect
>
> Like
>
> '   M   '
>
> the left side bearing in this case is 3 (units of spaces...)
>
> ' M     '  would be 1 in this case for the same charwidth returned.
>
> otherwise I just need to know it in pixels or whatever the units 
> are...I have to draw a character into a GWorld in the proper location 
> and have them all line up when rendered, same as if I had just used 
> DrawString or something.
>
> This would also be super handy for mucking up kerning on demand in the 
> time sink's text tool. :)
>
> (no clue how one gets such left-side bearing for a bitmapped font 
> though)
>
> Robert
>
> --
>