SVGTSpan

Part of wslib


see also: SVG, SVGFile


superclass : SVGText


The SVGTSpan can only be inside the string variable of an SVGText object. It creates the possibility to change a part of the text's font, size and offset.


creation


SVGTSpan ( string, x, y, fontName, fontSize, fillColor, name, transform, dx, dy )

creates a new object with the instance variables as described below and in the SVGObject helpfile

string : a String with the text to be included, or an array of strings and other SVGTSpan objects


SVGText( ["my ", SVGTSpan( "jumping", dy: -20 ), "text"], 100,40, fontSize: 12 ).plot; // array for y