[ALLY] Determining Pixel size of font
From: rebol::techscribe::com at: 16-Aug-2000 2:42
Hi,
how do I determine how much space (horizontally) a string will take up on
the screen, given a specified font name and size?
I.e. if I have the string "0123456789" and I'm using font size 12 and font
name "courier", and I position the face that contains the text at offset
0x0, how do I determine programmatically how large I must make the face so
that the complete string will be displayed? If I then want to add some
other element behind this string, how do I - again programmatically -
determine at which x offset I have to position that next element?
TIA,
;- Elan [ : - ) ]
author of REBOL: THE OFFICIAL GUIDE
REBOL Press: The Official Source for REBOL Books
http://www.REBOLpress.com
visit me at http://www.TechScribe.com