pub enum PathContourStart {
ScanBackward,
ScanForward,
}Expand description
Where a contour starts when its first point is off-curve.
A glyf point stream does not say where such a contour begins, and the
major implementations disagree, so a caller matching one of them has to
say which.
Variants§
ScanBackward
For a quadratic off-curve start, use the last point if it is on-curve, and the midpoint between it and the first otherwise.
What FreeType and HarfBuzz do.
ScanForward
For a quadratic off-curve start, use the second point if it is on-curve, and the midpoint between it and the first otherwise.
What HarfBuzz used to do, kept for compatibility purposes.
Trait Implementations§
Source§impl Clone for PathContourStart
impl Clone for PathContourStart
Source§fn clone(&self) -> PathContourStart
fn clone(&self) -> PathContourStart
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PathContourStart
Source§impl Debug for PathContourStart
impl Debug for PathContourStart
Source§impl Default for PathContourStart
impl Default for PathContourStart
Source§fn default() -> PathContourStart
fn default() -> PathContourStart
Returns the “default value” for a type. Read more
impl Eq for PathContourStart
Source§impl PartialEq for PathContourStart
impl PartialEq for PathContourStart
impl StructuralPartialEq for PathContourStart
Auto Trait Implementations§
impl Freeze for PathContourStart
impl RefUnwindSafe for PathContourStart
impl Send for PathContourStart
impl Sync for PathContourStart
impl Unpin for PathContourStart
impl UnsafeUnpin for PathContourStart
impl UnwindSafe for PathContourStart
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