7.6

Table Of Contents
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
Colour array that can be expressed using one, three or four values ranging from 0 to 255. For Grayscale, a single value
between 0 and 100 is used in the form [K], representing percentage of gray (100 is black, 0 is white). For the RGB model,
three values are used in the form [R, G, B]. For the CMYK model, four values are used in the form [C, M, Y, K].
fontratio
Integer value representing the percentage by which to shrink or stretch the font spacing. This value adjusts both the width of
each glyph and the spacing between glyphs. This is in contrast to kerning, which modifies the spacing between characters with-
out modifying the width of characters.
Example
setstyleext(&Style2.bi, 25, [100], 100)
©2010 Objectif Lune Inc - 448 -