7.6

Table Of Contents
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
show('This is shadowed text')
margin(.98,.98) %Offset margins slightly
setstyle(&bluefont) %Bluefont must already exist
show('This is shadowed text')
ShowLeftRight (procedure)
Displays a string of characters, in inches, using a specified width.
Syntax
showleftright( text, width )
Arguments
text
String value to be displayed.
width
Measure value representing the amount of horizontal space to use for displaying the string. showleftright adjusts the amount
of spaces between characters to insure the string fits exactly within the specified width.
Code Sample Example
This example shows how to fit strings of different sizes within the same box that has a width of 3 inches.
©2010 Objectif Lune Inc - 584 -