Font Metrics

Anyone know of an accurate method to get the exact pixel width of a proportional font character? The FONT METRICS attribute only gathers the width of the M charater so it's not really accurate if you want the width of a word that is not all MMMMs.

Comments

Font Metrics

Hi,

The exact pixel width of any character or string can be found with:

Let width=STRWIDTH(wid,string$)

where string$ can be a single character or a string.
where wid is the ID of the window where the current font has been specified. Note the default window ID is zero.

Regards
Big John