David, Ah ha. So this is one of those situations where I'd use straight XML commands on the object instead of the SVG commands.
Thanks. On Wed, Jan 25, 2017 at 2:52 AM, David Samson <[email protected]> wrote: > Hello Kirk, > > SVG is all XML behind the scenes so you need to replace the angle brackets > with < and > respectively. > > HTH > David Samson > Manchester > UK > > > > > I'm playing with some SVG and using the *SVGTool_SHOW_IN_VIEWER.* I > notice > > that when I attempt to set angle brackets in some text I get an error if > I > > try to display it in the viewer. > > > > I don't do a lot of SVG so this may be well known already but is this an > > issue with the 4D SVG viewer tool or something about text in VSG in > > general? > > > > Here's an example of what I'm doing: > > > > $text:="</>" > > $fontSize:=80 > > $x:=25 > > $y:=10 > > $textWidth:=90 > > $font:="Helvetica" > > $textHeight:=$fontSize+2 > > > > $svg_textArea:=SVG_New_textArea > > ($svgRef;$text;$x;$y;$textWidth;$textHeight;$font;$fontSize;0;Align > > center) > > > > > > I'm working on some code to generate file icons if you're wondering why > > I'm trying to use such text. > > > > That part all works fine. The error pops up when I put the $svgRef > object > > into the viewer tool. It only seems to be angle brackets. I tried > escaping > > them to no avail. I even tried rendering the text into a picture and then > > setting the picture in the $svgRef object but the Viewer also barfed on > > that. > > > > Anyone have some insight? > > > > Thanks > > > > -- > > Kirk Brooks > > > > > ********************************************************************** > 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] > ********************************************************************** -- Kirk Brooks San Francisco, CA ======================= ********************************************************************** 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] **********************************************************************

