Initializing help system before first use

svgaddxmltext

svgaddxmltext


Purpose
Add an XML formatted text to an object group.
Synopsis
procedure svgaddxmltext(gid: string, x: real, y: real, msg: text)
procedure svgaddxmltext(gid: string, x: real, y: real, msg: text)
Arguments
gid 
Object group ID.
The x coordinate of the point.
The y coordinate of the point.
text 
The text that will be displayed at the given point.
Example
This code displays some text with individual formatting on different words:
 svgaddxmltext(20, 150, 'XML formatted text:
   <tspan font-size="20px">large</tspan>,
   <tspan font-style="oblique">oblique</tspan>,
   <tspan font-weight="bold">bold</tspan>,
   <tspan text-decoration="underline">underlined</tspan>,
   <tspan stroke="red">red</tspan>')
Further information
1. By default the specified point denotes the lower left corner of the text display area; the vertical alignment can be changed via the style option SVG_ANCHOR (values 'start', 'middle', or 'end').
2. If no group ID is specified, the text is added to the last group that has been created.
Related topics