pub(crate) struct Edge {
pub fpos: i16,
pub opos: i32,
pub pos: i32,
pub flags: u8,
pub dir: Direction,
pub blue_edge: Option<ScaledWidth>,
pub link_ix: Option<u16>,
pub serif_ix: Option<u16>,
pub scale: i32,
pub first_ix: u16,
pub last_ix: u16,
}
Expand description
Sequence of segments used for grid-fitting.
Fields§
§fpos: i16
Original, unscaled position in font units.
opos: i32
Original, scaled position.
pos: i32
Current position.
flags: u8
Edge flags.
dir: Direction
Edge direction.
blue_edge: Option<ScaledWidth>
Present if this is a blue edge.
link_ix: Option<u16>
Index of linked edge.
serif_ix: Option<u16>
Index of primary edge for serif.
scale: i32
Used to speed up edge interpolation.
first_ix: u16
Index of first segment in edge.
last_ix: u16
Index of last segment in edge.
Implementations§
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 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