#[non_exhaustive]pub enum FontRaster {
Legacy,
Natural,
}Expand description
Glyph rasterization independent of font metrics and text editing coordinates.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Legacy
Original x-height fitting and downward quarter-pixel positioning.
Natural
Preserve the outline scale and round to the nearest quarter pixel.
Trait Implementations§
Source§impl Clone for FontRaster
impl Clone for FontRaster
impl Copy for FontRaster
Source§impl Debug for FontRaster
impl Debug for FontRaster
Source§impl Default for FontRaster
impl Default for FontRaster
impl Eq for FontRaster
Source§impl PartialEq for FontRaster
impl PartialEq for FontRaster
impl StructuralPartialEq for FontRaster
Auto Trait Implementations§
impl Forget for FontRaster
impl Freeze for FontRaster
impl RefUnwindSafe for FontRaster
impl Send for FontRaster
impl Sync for FontRaster
impl Unpin for FontRaster
impl UnsafeUnpin for FontRaster
impl UnwindSafe for FontRaster
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