Shayton Equilibrium Kitchen Utensil 2003 User Manual

Page of 194
98 
 Chapter 3 
• 
• 
• 
i n f o T e x t ( )
Returns the information about text. 
Syntax
infoText(
[font @ <"font">], 
[size @ <"size">], 
[style @ <"style">])
Return Values
ascent - the font ascent.
descent - the font descent
height - the font height
averageWidth - the average character width
maxWidth - the maximum character width
weight - the font weight
italic - returns “1” if italic
underlined - returns “1” if underlined
strikeout - returns “1” if strikeout
overhang - extra width that may be added to some fonts by GDI
Parameters
font
 -
 
specifies the TrueType or PostScript font family name to be used, for example, 
“Arial”. For more information about how MediaRich methods work with fonts and font 
files, see the “drawText()” on page 71.
size
 - sets the point size of the font to be used. The default size is 12.
style
 - specifies the font style. You can use any combination of modifiers. Each modifier 
should be separated by a space character. 
NOTE: 
The Style parameter is not available if MediaRich is running on Mac, Linux, or Solaris.
Weight modifiers modify the weight (thickness) of the font. Valid weight values, in order 
of increasing thickness, are: 
“thin”
“extralight” or “ultralight”
“light”
“normal” or “regular”
“medium”
“semibold” or “demibold” (“semi” or “demi” are also acceptable) 
“bold” 
“extrabold” or “ultrabold” (“extra” or “ultra” are also acceptable) 
“heavy” or “black”