ttf_parser

Trait OutlineBuilder

Source
pub trait OutlineBuilder {
    // Required methods
    fn move_to(&mut self, x: f32, y: f32);
    fn line_to(&mut self, x: f32, y: f32);
    fn quad_to(&mut self, x1: f32, y1: f32, x: f32, y: f32);
    fn curve_to(&mut self, x1: f32, y1: f32, x2: f32, y2: f32, x: f32, y: f32);
    fn close(&mut self);
}
Expand description

A trait for glyph outline construction.

Required Methods§

Source

fn move_to(&mut self, x: f32, y: f32)

Appends a MoveTo segment.

Start of a contour.

Source

fn line_to(&mut self, x: f32, y: f32)

Appends a LineTo segment.

Source

fn quad_to(&mut self, x1: f32, y1: f32, x: f32, y: f32)

Appends a QuadTo segment.

Source

fn curve_to(&mut self, x1: f32, y1: f32, x2: f32, y2: f32, x: f32, y: f32)

Appends a CurveTo segment.

Source

fn close(&mut self)

Appends a ClosePath segment.

End of a contour.

Implementors§