next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
VectorGraphics :: GraphicsText

GraphicsText -- SVG text

Description

Some SVG text. The text itself is the option TextContent (a string). Text can be "stroke"d or "fill"ed. Font size should be specified with FontSize.

i1 : GraphicsText{(0,0),"Test","stroke"=>"red","fill"=>"none","stroke-width"=>0.5}

o1 = GraphicsText{cache => CacheTable{}}
                  fill => none
                  Is3d => false
                  Point => | 0 |
                           | 0 |
                           | 0 |
                           | 1 |
                  stroke => red
                  stroke-width => .5
                  TextContent => Test

o1 : GraphicsText

Caveat

Currently, cannot be rotated. (coming soon)

Types of GraphicsText :

For the programmer

The object GraphicsText is an instance of the type GraphicsType, with ancestor classes GraphicsObject < HashTable < Thing.