7.4

Table Of Contents
Example
showpdf('new_models', 5, 0, 0)
ShowUTF8 (procedure)
This command is used to display UTF8 text on the document. It is designed to be used within a begi-
nUTF8paragraph...endUTF8paragraph structure. Its uses the paragraph properties defined in the begi-
nUTF8paragraph command.
Syntax
showUTF8( text )
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.
Code Sample Example
This example displays a UTF8 string within a justified paragraph with the text running from right to left.
Example
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/18)
BeginUTF8Paragraph(0.0000,&width,0.0000,'leftright',0.1667,'rtl')
SetStyleExt(&Style1,12.0000,0,[100],100)
ShowUTF8('\u0623\u0633\u0627\u0633\u064B\u0627\u060C')
EndUTF8Paragraph()
©2010 Objectif Lune Inc - 360 -