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 |
Currently, cannot be rotated. (coming soon)
The object GraphicsText is an instance of the type GraphicsType, with ancestor classes GraphicsObject < HashTable < Thing.