pub struct HintInstance {
functions: Vec<Definition>,
instructions: Vec<Definition>,
cvt: Vec<i32>,
storage: Vec<i32>,
graphics: RetainedGraphicsState,
twilight_scaled: Vec<Point<F26Dot6>>,
twilight_original_scaled: Vec<Point<F26Dot6>>,
twilight_flags: Vec<PointFlags>,
axis_count: u16,
max_stack: usize,
}
Fields§
§functions: Vec<Definition>
§instructions: Vec<Definition>
§cvt: Vec<i32>
§storage: Vec<i32>
§graphics: RetainedGraphicsState
§twilight_scaled: Vec<Point<F26Dot6>>
§twilight_original_scaled: Vec<Point<F26Dot6>>
§twilight_flags: Vec<PointFlags>
§axis_count: u16
§max_stack: usize
Implementations§
Source§impl HintInstance
impl HintInstance
pub fn reconfigure( &mut self, outlines: &Outlines<'_>, scale: i32, ppem: i32, target: Target, coords: &[F2Dot14], ) -> Result<(), HintError>
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Returns true if we should actually apply hinting.
Hinting can be completely disabled by the control value program.
Sourcepub fn backward_compatibility(&self) -> bool
pub fn backward_compatibility(&self) -> bool
Returns true if backward compatibility mode has been activated
by the hinter settings or the prep
table.
pub fn hint( &self, outlines: &Outlines<'_>, outline: &mut HintOutline<'_>, is_pedantic: bool, ) -> Result<(), HintError>
Trait Implementations§
Source§impl Clone for HintInstance
impl Clone for HintInstance
Source§fn clone(&self) -> HintInstance
fn clone(&self) -> HintInstance
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for HintInstance
impl Default for HintInstance
Source§fn default() -> HintInstance
fn default() -> HintInstance
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HintInstance
impl RefUnwindSafe for HintInstance
impl Send for HintInstance
impl Sync for HintInstance
impl Unpin for HintInstance
impl UnwindSafe for HintInstance
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