pub enum PathStyle {
FreeType,
HarfBuzz,
}
Expand description
Style for path conversion.
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?
If you add a new one make sure to update the fuzzer.
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 point stream.
Trait Implementations§
impl Copy for PathStyle
Auto Trait Implementations§
impl Freeze for PathStyle
impl RefUnwindSafe for PathStyle
impl Send for PathStyle
impl Sync for PathStyle
impl Unpin for PathStyle
impl UnwindSafe for PathStyle
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)