[−][src]Module plotters::style::text_anchor
Text anchor attributes are used to properly position the text.
Examples
In the example below, the text anchor (X) position is Pos::new(HPos::Right, VPos::Center)
.
***** X
The position is always relative to the text regardless of its rotation.
In the example below, the text has style
style.transform(FontTransform::Rotate90).pos(Pos::new(HPos::Center, VPos::Top))
.
*
*
* X
*
*
Structs
Pos | The text anchor position. |
Enums
HPos | The horizontal position of the anchor point relative to the text. |
VPos | The vertical position of the anchor point relative to the text. |