6.0

Table Of Contents
114
Language Reference
4
Example 2
setlinewidth(0.007)
moveto(0,0)
rlineto(&width,0)
rlineto(0,&height)
rlineto(neg(&width),0)
rlineto(0,neg(&height))
closepath()
stroke()
moveto(&width/2,&height/2)
SetStyleExt(&Style1,12.0000,0,[100],100)
showUTF8right(maputf8(@(2,15,35), &MyArabEncoding, False),'normal')
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 setting.
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')