Trait font_kit::outline::OutlineSink
source · pub trait OutlineSink {
// Required methods
fn move_to(&mut self, to: Vector2F);
fn line_to(&mut self, to: Vector2F);
fn quadratic_curve_to(&mut self, ctrl: Vector2F, to: Vector2F);
fn cubic_curve_to(&mut self, ctrl: LineSegment2F, to: Vector2F);
fn close(&mut self);
}
Expand description
Receives Bézier path rendering commands.
Required Methods§
sourcefn quadratic_curve_to(&mut self, ctrl: Vector2F, to: Vector2F)
fn quadratic_curve_to(&mut self, ctrl: Vector2F, to: Vector2F)
Draws a quadratic Bézier curve to a point.
sourcefn cubic_curve_to(&mut self, ctrl: LineSegment2F, to: Vector2F)
fn cubic_curve_to(&mut self, ctrl: LineSegment2F, to: Vector2F)
Draws a cubic Bézier curve to a point.