Skip to main content

rotated

Function rotated 

Source
fn rotated(nib: Nib<'_>, pos: Pos2, anchor: Align2, run: Run<'_>, angle: Angle)
Expand description

A run rotated by angle about its own anchor point, with the run’s top left corner at pos — the placement epaint’s anchored text shape makes of the same two values, so both backends rotate a pin’s label alike.