> SVG is all XML behind the scenes so you need to replace the angle brackets 
> with < and > respectively.
>
that's what is to be expected. But doesn't work.

This works

$text:="</>"
$fontSize:=80
$x:=25
$y:=10
$textWidth:=90
$font:="Helvetica"
$textHeight:=$fontSize+2

$svgRef:=SVG_New
$svg_textArea:=SVG_New_text ($svgRef;$text;$x;$y;$font;$fontSize;0;Align center)
$converted_XML:=SVG_Export_to_XML ($svgRef)
SVG_CLEAR ($svgRef)
TEXT TO DOCUMENT(System 
folder(Desktop)+"text.svg";$converted_XML;"utf-8";Document unchanged)

except for SVGTool_SHOW_IN_VIEWER

Regards
O r t w i n Z i l l g e n
---------------------------------------------
Mühlenstraße 35 • 38 685 Langelsheim
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to