pub(crate) enum Precision {
Fixed,
Float,
}Expand description
The arithmetic used to scale an outline.
Drawing uses fixed point. Floating point is used for measurements that match HarfBuzz, which keeps every fraction.
Variants§
Fixed
26.6 fixed point, as used by FreeType.
Values are rounded to 1/64 of a pixel during scaling. Without a size, this preserves implied midpoints that fall on half units.
Float
Single precision floating point.
This keeps the fraction of every coordinate and variation delta.
Trait Implementations§
impl Copy for Precision
impl Eq for Precision
impl StructuralPartialEq for Precision
Auto Trait Implementations§
impl Freeze for Precision
impl RefUnwindSafe for Precision
impl Send for Precision
impl Sync for Precision
impl Unpin for Precision
impl UnsafeUnpin for Precision
impl UnwindSafe for Precision
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