Enum read_fonts::tables::glyf::ToPathStyle
source · pub enum ToPathStyle {
FreeType,
HarfBuzz,
}
Expand description
The order to process points in a glyf point stream is ambiguous when the first point is off-curve. Major implementations differ. Which one would you like to match?
Variants§
FreeType
If the first point is off-curve, check if the last is on-curve If it is, start there. If it isn’t, start at the implied midpoint between first and last.
HarfBuzz
If the first point is off-curve, check if the second is on-curve. If it is, start there. If it isn’t, start at the implied midpoint between first and second.
Matches hb-draw’s interpretation of a pointstream.
Trait Implementations§
source§impl Clone for ToPathStyle
impl Clone for ToPathStyle
source§fn clone(&self) -> ToPathStyle
fn clone(&self) -> ToPathStyle
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ToPathStyle
impl Debug for ToPathStyle
source§impl Default for ToPathStyle
impl Default for ToPathStyle
source§fn default() -> ToPathStyle
fn default() -> ToPathStyle
Returns the “default value” for a type. Read more
impl Copy for ToPathStyle
Auto Trait Implementations§
impl Freeze for ToPathStyle
impl RefUnwindSafe for ToPathStyle
impl Send for ToPathStyle
impl Sync for ToPathStyle
impl Unpin for ToPathStyle
impl UnwindSafe for ToPathStyle
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