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 RefPoint. The text itself is the option TextContent (a string or list of strings). 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{}             }
                  FontSize => 14
                  RefPoint => | 0 |
                              | 0 |
                              | 0 |
                              | 1 |
                  style => MutableHashTable{...3...}
                  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
                                            RefPoint => | 0 |                          RefPoint => | 7 |
                                                        | 0 |                                      | 0 |
                                                        | 0 |                                      | 0 |
                                                        | 1 |                                      | 1 |
                                            style => MutableHashTable{}                style => MutableHashTable{}
                                            TextContent => P                           TextContent => AUL
                  style => MutableHashTable{}

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 < GraphicsAncestor < HashTable < Thing.