Справочник Пользователя для Shayton Equilibrium Kitchen Utensil 2003

Скачать
Страница из 194
MediaScript Objects and Methods 107 
• 
• 
• 
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” 
Other Style parameters are “Underline”, “Italic” or “Italics”, and “Strikethru” or 
“Strikeout”.
NOTE: 
You can combine Style parameters as necessary. For example: Style @ “Bold 
Italic”
 
Text
 - 
specifies the text to be drawn. The text string must be enclosed in quotes. To indicate 
a line break, use \n.
Color
 - specifies the color to be used for the text. The default value for text color is white. 
For more information about setting a foreground color, see “setColor()” on page 131.
Rtype
 - specifies the target bit depth. Supported bit-depths are: “Gray-8”, “RGB-15”, 
“RGB-16”, “RGBA-16”, “RGB-18”, “RGB-24”, “RGBA-32”, “HSV-24”, “HLS-24”, “CMYK-
32”, “CMYKA-40”. The 16-bit type, is 5-6-5, while the 16a-bit is 1-5-5-5 with the top bit as 
an alpha channel.
In addition, the following shortcuts will have default values when used as input 
parameters: 
Gray -> Gray-8 
RGB -> RGB-24 
RGBA -> RGBA-32 
HSV -> HSV-24 
HLS -> HLS-24 
CMYK -> CMYK-32 
CMYKA -> CMYKA-40
NOTE: 
Deprecated Rtype values include: “Grayscale”, “15-bit”, “16-bit”, “16a-bit”, “24-bit”, 
“32-bit”. 
Size
 - sets the point size of the font to be used, and its default value is 12 and the maximum 
is 4095.
Justify
 - specifies how the text will be justified. The default is “center”. Other options are 
“left”, “right-hand”, and “justified”. (The “justified” option is available on Windows only.) 
This parameter only affects text with multiple lines.