7.5

Table Of Contents
showUTF8center( text, mode )
Argument
text
Static text string or data selection to be displayed. Bear in mind that the information, wether static or variable, must be in
UTF8. The maputf8 function can be used to convert the information to UTF8.
mode
String value specifying the contextual analysis is to be performed. Possible values are 'normal', 'reverse', and 'none' (for no
contextual analysis).
Code Sample Examples
Example 1
This example illustrates a static text string (the name Saudi Arabia) escaped to its UTF8 reference form that will be displayed
from the insertion point to the left.
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)
showUTF8left('\u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629', 'normal')
Example 2
This example shows 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.
setlinewidth(0.007)
moveto(0,0)
rlineto(&width,0)
rlineto(0,&height)
rlineto(neg(&width),0)
©2010 Objectif Lune Inc - 477 -