pub struct Edge { /* private fields */ }Expand description
Sequence of segments used for grid-fitting.
Implementations§
Source§impl Edge
impl Edge
Sourcepub fn original_position(&self) -> i16
pub fn original_position(&self) -> i16
Returns the original unscaled position in font units.
Sourcepub fn scaled_position(&self) -> i32
pub fn scaled_position(&self) -> i32
Returns the original scaled position.
Sourcepub fn blue_edge(&self) -> Option<ScaledWidth>
pub fn blue_edge(&self) -> Option<ScaledWidth>
Returns the width of the captured blue zone.
Sourcepub fn blue_provenance(&self) -> Option<BlueProvenance>
pub fn blue_provenance(&self) -> Option<BlueProvenance>
Returns which blue zone was selected and whether the overshoot position won so recorders can reproduce CVT references later.
Sourcepub fn link_index(&self) -> Option<u16>
pub fn link_index(&self) -> Option<u16>
Returns the index of the linked edge.
Sourcepub fn serif_index(&self) -> Option<u16>
pub fn serif_index(&self) -> Option<u16>
Returns the index of the associated serif edge.
Sourcepub fn segment_indices(&self) -> (u16, u16)
pub fn segment_indices(&self) -> (u16, u16)
Returns the indices of the first and last segments that define the edge.
Use Segment::next_in_edge_index to walk the segment list.
Trait Implementations§
impl Copy for Edge
impl Eq for Edge
impl StructuralPartialEq for Edge
Auto Trait Implementations§
impl Freeze for Edge
impl RefUnwindSafe for Edge
impl Send for Edge
impl Sync for Edge
impl Unpin for Edge
impl UnsafeUnpin for Edge
impl UnwindSafe for Edge
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