struct HintMap {
edges: [Hint; 96],
len: usize,
is_valid: bool,
scale: Fixed,
}
Expand description
Collection of adjusted hint edges.
Fields§
§edges: [Hint; 96]
§len: usize
§is_valid: bool
§scale: Fixed
Implementations§
Source§impl HintMap
impl HintMap
fn new(scale: Fixed) -> Self
fn clear(&mut self)
Sourcefn transform(&self, coord: Fixed) -> Fixed
fn transform(&self, coord: Fixed) -> Fixed
Transform character space coordinate to device space.
Sourcefn insert(&mut self, bottom: &Hint, top: &Hint, initial: Option<&HintMap>)
fn insert(&mut self, bottom: &Hint, top: &Hint, initial: Option<&HintMap>)
Insert hint edges into map, sorted by character space coordinate.
Sourcefn build(
&mut self,
state: &HintState,
mask: Option<HintMask>,
initial_map: Option<&mut HintMap>,
stems: &mut [StemHint],
origin: Fixed,
is_initial: bool,
)
fn build( &mut self, state: &HintState, mask: Option<HintMask>, initial_map: Option<&mut HintMap>, stems: &mut [StemHint], origin: Fixed, is_initial: bool, )
Builds a hintmap from hints and mask.
If initial_map
is invalid, this recurses one level to initialize
it. If is_initial
is true, simply build the initial map.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HintMap
impl RefUnwindSafe for HintMap
impl Send for HintMap
impl Sync for HintMap
impl Unpin for HintMap
impl UnwindSafe for HintMap
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