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

GraphicsText -- SVG text

Description

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

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

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

o1 : GraphicsText
i2 : gList(GraphicsText{(0,0),"P",FontSize=>14},GraphicsText{(7,0),"AUL",FontSize=>10})

o2 = GraphicsList{cache => CacheTable{}                                                                 }
                  Contents => {GraphicsText{cache => CacheTable{}}, GraphicsText{cache => CacheTable{}}}
                                            FontSize => 14                       FontSize => 10
                                            Point => | 0 |                       Point => | 7 |
                                                     | 0 |                                | 0 |
                                                     | 0 |                                | 0 |
                                                     | 1 |                                | 1 |
                                            TextContent => P                     TextContent => AUL

o2 : GraphicsList

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.