Win32Prn() > Font and text metrics |
Returns the width of a character string in pixels.
:getTextWidth( <cString> ) --> nPixelsWidth
The method :getTextHeight() determines the maximum width of a character string in pixels and returns the result as a numeric value. This is especially useful when a proportional font is selected where different characters require a different amount of space. The letter "i" needs less space than "W", for example.
http://www.xHarbour.com