7.5

Table Of Contents
Code Sample Examples
Example 1 illustrates a variable text string that is taken from the data, converted from the MS-CP-1256 encoding to UTF8 and
then displayed from the insertion point to the right. Example 2 illustrates the same variable text string, but this time it is con-
verted from the encoding specified in the style named “MyArabEncoding to UTF8.
Example 1
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), 'MS-CP-1256', False),'normal')
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')
©2010 Objectif Lune Inc - 302 -