pub(super) struct PostScriptHinter {
subfonts: Vec<Option<HintedSubfont>>,
ppem: f32,
}Expand description
The PostScript hinter, configured for one font at one size.
Fields§
§subfonts: Vec<Option<HintedSubfont>>The first CACHED_SUBFONTS subfonts. None marks one that cannot
be read, which fails only its own glyphs.
ppem: f32Implementations§
Source§impl PostScriptHinter
impl PostScriptHinter
Sourcepub(super) fn reconfigure(
&mut self,
cff: &CffFontRef<'_>,
coords: &[F2Dot14],
ppem: f32,
)
pub(super) fn reconfigure( &mut self, cff: &CffFontRef<'_>, coords: &[F2Dot14], ppem: f32, )
Reads the first subfonts at the font’s location and ppem.
pub(super) fn draw( &self, font: &Font, outline: &CffGlyph<'_>, sink: &mut dyn PathSink, ) -> Result<DrawnMetrics, ScaleError>
Trait Implementations§
Source§impl Default for PostScriptHinter
impl Default for PostScriptHinter
Source§fn default() -> PostScriptHinter
fn default() -> PostScriptHinter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PostScriptHinter
impl RefUnwindSafe for PostScriptHinter
impl Send for PostScriptHinter
impl Sync for PostScriptHinter
impl Unpin for PostScriptHinter
impl UnsafeUnpin for PostScriptHinter
impl UnwindSafe for PostScriptHinter
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