7.4

Table Of Contents
Argument
stylename
Name of the style to use for all subsequent commands. The name of the style must be preceded by an ampersand. You can ref-
erence the bold, italic, or underlined versions of a font by appending the appropriate letter or letters to the name of the style.
Append .b for the bold version, .i for the italic version, .bi for the bold italic version, and .u for the underlined version.
Code Sample Example
This example displays a line of text using two different existing styles called Blackfont and Bluefont.
Example
margin(1,1)
setstyle(&blackfont)
show('The word ')
setstyle(&bluefont.i)
show('blue')
setstyle(&blackfont)
show(' is now in blue italic')
SetStyleExt (procedure)
Select an existing style and set the size, color, style property, or font ratio for its font. This eliminates the need to create sev-
eral styles that use the same font. setstyleext() does not support bold, italic, or underline styles with double-byte character
sets.
Syntax
setstyleext(stylename, fontsize, styleproperty, fontcolor, fontratio)
Arguments
stylename
The name of the style. The name of the style must be preceded by an ampersand. You can set the bold, italic, or bold italic
property of the style by appending .b, .i, or .bi respectively to the name of the style.
The ability to append .b, .i, or .bi to style names that have double-byte character sets is not supported.
fontsize
Measure value representing the point size for the font. A value of -1 use the default font size of the style specified by style-
name.
styleproperty
Integer value representing the style property for the font:
l 0:Normal
l 1:Underline
l 2:Outline
fontcolor
©2010 Objectif Lune Inc - 334 -