7.5

Table Of Contents
CRLF (procedure)
Moves the current point by simulating a carriage return/line feed combination. The horizontal position is reset to the value of
the current left margin, while the vertical position is offset by the leading value specified.
Syntax
crlf( [leading] )
Argument
leading
Measure value setting the vertical distance, in inches, between two lines. If you do not provide this argument, the value by
default is 0.167 inches, which is roughly equivalent to a 6 LPI (lines per inch) setting.
Code Sample Example
This example demonstrates how to change the vertical spacing of lines within an object.
Example
margin(1,1)
show('These lines are displayed')
crlf(0.125)
show('at 8 LPI.')
crlf(0.5)
show('While these lines are displayed')
crlf(0.5)
show('at 2 LPI')
Margin (procedure)
Offsets text within a series of commands, relative to the original top left position of the object. Margin also sets the horizontal
position to be used when crlf commands are encountered. All text-rendering functions that make use of margins use this set-
ting.
Syntax
margin( x, y )
Arguments
x, y
Measure values representing the horizontal/vertical position, in inches, of the starting point for the text within an object.
Code Sample Example
This example displays shadowed text by repeating the same text commands twice, using styles of different colours and
slightly offsetting the margin.
Example
margin(1,1) %Set margins to ( 1,1 )
setstyle(&blackfont) %Blackfont must already exist
©2010 Objectif Lune Inc - 585 -