×
Menu
Index

TextWidth

 
 
  • TextWidth( [ cText ], lUTF ) => Returns the width of a given text.
 
 
this command will return the width of a given text in PDF units, each PDF unit equals 1/72 of a inch (72 DPI), it can be converted to Xbase GRA_PU_LOMETRIC using  x GRA_PU_LOMETRIC = y PDF units / 72 * 254
 
lUTF (logic) : indicates if the string is a normal ANSI text (false), or if it is an UNICODE text (true). (Default is false)
  
example : 595 PDF units = (595 / 72 * 254) = 2100 GRA_PU_LOMETRIC