Trait zng_ext_font::OutlineSink
source · pub trait OutlineSink {
// Required methods
fn move_to(&mut self, to: Point2D<f32, Px>);
fn line_to(&mut self, to: Point2D<f32, Px>);
fn quadratic_curve_to(
&mut self,
ctrl: Point2D<f32, Px>,
to: Point2D<f32, Px>,
);
fn cubic_curve_to(
&mut self,
ctrl: (Point2D<f32, Px>, Point2D<f32, Px>),
to: Point2D<f32, Px>,
);
fn close(&mut self);
}
Expand description
Receives Bézier path rendering commands from Font::outline
.
The points are relative to the baseline, negative values under, positive over.
Required Methods§
sourcefn quadratic_curve_to(&mut self, ctrl: Point2D<f32, Px>, to: Point2D<f32, Px>)
fn quadratic_curve_to(&mut self, ctrl: Point2D<f32, Px>, to: Point2D<f32, Px>)
Draws a quadratic Bézier curve to a point.