Text
Represents an arbitrary text label placed as a Graphics object
Text["String", {0,0}]
Supports styling such as Style
and Directive
, i.e.
Graphics[{
Text[Style["Hello World", FontSize->14], {0,0}]
}]
Styling options
The following options can be provided to Style
wrapper
FontSize->Number
- 10, 12, 14...FontFamily->String
- this is basically an SVG attribute, please see here. If you have imported any font using CSS, you can also use it.
To change the color, just put in somewhere to the list
Graphics[{
Red, Text["Hello World", {0,0}]
}]