Skip to main content

Module scaler

Module scaler 

Source
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Β§

DrawnMetrics
What drawing an outline reports about it.
GlyphSourceOrder
An ordered list of glyph sources, most preferred first.
ScalerFont
Draws glyphs from a Font at a size, with optional hinting.
ScalerOutline
An outline from a ScalerFont, resolved for drawing.
ScalerSource
A font and the order in which its outline sources are tried.

EnumsΒ§

DrawMemory
Working memory for drawing an outline.
DropoutControl
The dropout control mode for a bilevel rasterizer.
EngineChoice πŸ”’
The engine chosen to hint a font.
GlyphSource
A table that can provide a glyph.
OutlineSource
A table that provides outlines.
State πŸ”’
The hinting engine configured for the font and size.

TraitsΒ§

PathSink
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.