Module plotters_backend::text_anchor[][src]

Expand description

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

The text anchor position.

Enums

The horizontal position of the anchor point relative to the text.

The vertical position of the anchor point relative to the text.