pub struct Unscaled;Expand description
Leaves coordinates in font units.
Variations still apply, and composite components are still transformed and placed, but nothing is scaled or rounded to a pixel grid. This is what an autohinter wants: the outline as the designer drew it, at the requested location in variation space.
The arithmetic matches Scale26Dot6 at no size, without the round trip
through 26.6 that getting font units back out would otherwise need.
Trait Implementations§
impl Copy for Unscaled
Source§impl Scale for Unscaled
impl Scale for Unscaled
Source§const NEEDS_UNSCALED: bool = false
const NEEDS_UNSCALED: bool = false
True if the scale keeps a parallel copy of the points in font units,
which hinting needs and which sparse delta interpolation uses as its
reference coordinates.
Source§fn is_scaled(&self) -> bool
fn is_scaled(&self) -> bool
True if a size was supplied. When false the outline comes back in font
units, expressed in
Self::Coord.Source§fn phantom_from_font_units(&self, value: i32) -> i32
fn phantom_from_font_units(&self, value: i32) -> i32
Converts a font unit value into the representation phantom points use
before they are scaled.
Source§fn coord_to_hinting_raw(&self, value: i32) -> i32
fn coord_to_hinting_raw(&self, value: i32) -> i32
Reinterprets an output coordinate as the integer a hinter’s font unit
buffer holds. Read more
Source§fn scale_phantom(&self, point: Point<i32>) -> Point<i32>
fn scale_phantom(&self, point: Point<i32>) -> Point<i32>
Scales a phantom point that still holds font units.
Source§fn add_phantom_delta(
&self,
point: Point<i32>,
delta: Point<Fixed>,
) -> Point<i32>
fn add_phantom_delta( &self, point: Point<i32>, delta: Point<Fixed>, ) -> Point<i32>
Adds a composite glyph’s phantom point delta.
Source§fn round_phantom(&self, point: Point<i32>) -> Point<i32>
fn round_phantom(&self, point: Point<i32>) -> Point<i32>
Rounds a phantom point, which FreeType does before hinting.
Source§fn load_empty_phantom(
&self,
phantom: &mut [Point<i32>; 4],
deltas: Option<[Point<Fixed>; 4]>,
)
fn load_empty_phantom( &self, phantom: &mut [Point<i32>; 4], deltas: Option<[Point<Fixed>; 4]>, )
Sets the phantom points of a glyph with no outline. Read more
Source§fn load_simple_points(
&self,
pass: SimplePass<'_, '_, Self>,
) -> Result<[Point<i32>; 4], Error>
fn load_simple_points( &self, pass: SimplePass<'_, '_, Self>, ) -> Result<[Point<i32>; 4], Error>
Reads a simple glyph’s points, applies variation deltas, appends the
phantom points and writes the scaled result. Read more
Auto Trait Implementations§
impl Freeze for Unscaled
impl RefUnwindSafe for Unscaled
impl Send for Unscaled
impl Sync for Unscaled
impl Unpin for Unscaled
impl UnsafeUnpin for Unscaled
impl UnwindSafe for Unscaled
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