Ok, so this is an edge case. The ultimate workaround was to just build the
image in pure SVG using lines.

On Tue, Jan 24, 2017 at 11:39 AM, Kirk Brooks <[email protected]> wrote:

> 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
> San Francisco, CA
> =======================
>



-- 
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]
**********************************************************************

Reply via email to