Expand description
Scaled and hinted glyphs from a Font.
The crate root re-exports the types.
Re-exportsΒ§
pub use crate::outline::glyf::RasterPolicy;pub use error::ScaleError;pub use hinting::HintEngine;pub use hinting::HintOptions;pub use hinting::RasterTarget;
ModulesΒ§
- error π
- The error from scaling a glyph.
- hinting π
- Hinting configuration for a
ScalerFont. - postscript π
- PostScript hinting for a
ScalerFont. - truetype π
- TrueType hinting for a
ScalerFont.
StructsΒ§
- Drawn
Metrics - What drawing an outline reports about it.
- Glyph
Source Order - An ordered list of glyph sources, most preferred first.
- Scaler
Font - Draws glyphs from a
Fontat a size, with optional hinting. - Scaler
Outline - An outline from a
ScalerFont, resolved for drawing. - Scaler
Source - A font and the order in which its outline sources are tried.
EnumsΒ§
- Draw
Memory - Working memory for drawing an outline.
- Dropout
Control - The dropout control mode for a bilevel rasterizer.
- Engine
Choice π - The engine chosen to hint a font.
- Glyph
Source - A table that can provide a glyph.
- Outline
Source - A table that provides outlines.
- State π
- The hinting engine configured for the font and size.
TraitsΒ§
- Path
Sink - Receives the path commands for an outline.
FunctionsΒ§
- draw_
options π - Returns the read-fonts draw options for a size, with FreeTypeβs contour start points.
- resolve_
outlines π - Keeps the font with its outlines, resolved once for every draw.