pub struct TextPath {
pub control_points: Vec<(f32, f32)>,
}Expand description
A Bezier spline path for positioning and rotating glyphs along arbitrary curves.
§Contract
The path is constructed from control points. The sample method interpolates
along the path at normalized parameter t (0.0 to 1.0) and returns the 2D position
and the tangent rotation angle in radians for orienting characters correctly.
Fields§
§control_points: Vec<(f32, f32)>Control points for the Bezier spline segments.
Implementations§
Trait Implementations§
impl StructuralPartialEq for TextPath
Auto Trait Implementations§
impl Freeze for TextPath
impl RefUnwindSafe for TextPath
impl Send for TextPath
impl Sync for TextPath
impl Unpin for TextPath
impl UnsafeUnpin for TextPath
impl UnwindSafe for TextPath
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more