Struct write_fonts::pens::ControlBoundsPen
source · pub struct ControlBoundsPen { /* private fields */ }Expand description
Pen to calculate the “control bounds” of a shape. This is the bounding box of all control points, so may be larger than the actual bounding box if there are curves that don’t have points on their extremes.
https://github.com/fonttools/fonttools/blob/main/Lib/fontTools/pens/boundsPen.py
Implementations§
Trait Implementations§
source§impl Default for ControlBoundsPen
impl Default for ControlBoundsPen
source§fn default() -> ControlBoundsPen
fn default() -> ControlBoundsPen
Returns the “default value” for a type. Read more
source§impl Pen for ControlBoundsPen
impl Pen for ControlBoundsPen
source§fn quad_to(&mut self, cx0: f32, cy0: f32, x: f32, y: f32)
fn quad_to(&mut self, cx0: f32, cy0: f32, x: f32, y: f32)
Emit a quadratic bezier segment from the current point with a control
point at (cx0, cy0) and ending at (x, y).
Auto Trait Implementations§
impl RefUnwindSafe for ControlBoundsPen
impl Send for ControlBoundsPen
impl Sync for ControlBoundsPen
impl Unpin for ControlBoundsPen
impl UnwindSafe for ControlBoundsPen
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
source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere U: FromObjRef<T>,
source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.