7.5

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')
Mid (function)
Extracts a specified number of characters from a string, starting at a specific position.
Syntax
mid( string, start, length ) string value
Arguments
string
String value from which to extract characters.
start
Integer value specifying where the first character to extract is located.
length
Integer value specifying how many characters to extract, starting from number onwards.
©2010 Objectif Lune Inc - 303 -