pub(crate) struct HintState {
scale: Fixed,
blue_scale: Fixed,
blue_shift: Fixed,
blue_fuzz: Fixed,
language_group: i32,
suppress_overshoot: bool,
do_em_box_hints: bool,
boost: Fixed,
darken_y: Fixed,
zones: [BlueZone; 12],
zone_count: usize,
}
Expand description
Hinting state for a PostScript subfont.
Note that hinter states depend on the scale, subfont index and variation coordinates of a glyph. They can be retained and reused if those values remain the same.
Fields§
§scale: Fixed
§blue_scale: Fixed
§blue_shift: Fixed
§blue_fuzz: Fixed
§language_group: i32
§suppress_overshoot: bool
§do_em_box_hints: bool
§boost: Fixed
§darken_y: Fixed
§zones: [BlueZone; 12]
§zone_count: usize
Implementations§
Source§impl HintState
impl HintState
pub fn new(params: &HintParams, scale: Fixed) -> Self
fn zones(&self) -> &[BlueZone]
Sourcefn build_zones(&mut self, params: &HintParams)
fn build_zones(&mut self, params: &HintParams)
Initialize zones from the set of blues values.
Trait Implementations§
impl Copy for HintState
impl StructuralPartialEq for HintState
Auto Trait Implementations§
impl Freeze for HintState
impl RefUnwindSafe for HintState
impl Send for HintState
impl Sync for HintState
impl Unpin for HintState
impl UnwindSafe for HintState
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