Trait owned_ttf_parser::OutlineBuilder[][src]

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

A trait for glyph outline construction.

Required methods

pub fn move_to(&mut self, x: f32, y: f32)[src]

Appends a MoveTo segment.

Start of a contour.

pub fn line_to(&mut self, x: f32, y: f32)[src]

Appends a LineTo segment.

pub fn quad_to(&mut self, x1: f32, y1: f32, x: f32, y: f32)[src]

Appends a QuadTo segment.

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

Appends a CurveTo segment.

pub fn close(&mut self)[src]

Appends a ClosePath segment.

End of a contour.

Loading content...

Implementors

Loading content...