pub struct HintPlan {
hints: Vec<HintAction>,
axes: [Option<Axis>; 2],
}Expand description
Plan for hinting an outline.
Fields§
§hints: Vec<HintAction>§axes: [Option<Axis>; 2]Implementations§
Source§impl HintPlan
impl HintPlan
Sourcepub fn new(
font: &FontRef<'_>,
coords: &[F2Dot14],
ppem: f32,
target: Target,
glyph_id: GlyphId,
glyph_style: GlyphStyle,
) -> Result<Self, DrawError>
pub fn new( font: &FontRef<'_>, coords: &[F2Dot14], ppem: f32, target: Target, glyph_id: GlyphId, glyph_style: GlyphStyle, ) -> Result<Self, DrawError>
Creates a new hint plan.
Sourcepub fn actions(&self) -> &[HintAction]
pub fn actions(&self) -> &[HintAction]
Returns the collection of hinting actions.
Sourcepub fn horizontal_axis(&self) -> Option<&Axis>
pub fn horizontal_axis(&self) -> Option<&Axis>
Returns the topological analysis of the horizontal axis.
Sourcepub fn vertical_axis(&self) -> Option<&Axis>
pub fn vertical_axis(&self) -> Option<&Axis>
Returns the topological analysis of the vertical axis.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HintPlan
impl RefUnwindSafe for HintPlan
impl Send for HintPlan
impl Sync for HintPlan
impl Unpin for HintPlan
impl UnsafeUnpin for HintPlan
impl UnwindSafe for HintPlan
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