Skip to main content

Module metrics

Module metrics 

Source
Expand description

Autohinting specific metrics.

Re-exportsยง

pub use blues::BlueZones;
pub use blues::ScaledBlue;
pub use blues::UnscaledBlue;

Modulesยง

blues ๐Ÿ”’
Latin blue values.
scale ๐Ÿ”’
Metrics scaling.
widths ๐Ÿ”’
Latin standard stem width computation.

Structsยง

Scale
Captures scaling parameters which may be modified during metrics computation.
ScaleFlags
Flags that define how scaling and hinting is applied.
ScaledAxisMetrics
Scaled metrics for a single axis.
ScaledStyleMetrics
Scaled metrics for a single style and script.
ScaledWidth
A scaled stem width.
UnscaledAxisMetrics
Unscaled metrics for a single axis.
UnscaledStyleMetrics
Unscaled metrics for a single style and script.
WidthMetrics
Metrics for the set of stems along a single axis.

Enumsยง

UnscaledStyleMetricsSet ๐Ÿ”’
The set of unscaled style metrics for a single font.

Constantsยง

MAX_WIDTHS ๐Ÿ”’
Maximum number of widths, same for Latin and CJK.

Functionsยง

fixed_div ๐Ÿ”’
fixed_mul ๐Ÿ”’
fixed_mul_div ๐Ÿ”’
pix_floor ๐Ÿ”’
pix_round ๐Ÿ”’
sort_and_quantize_widths ๐Ÿ”’

Type Aliasesยง

ScaledWidths ๐Ÿ”’
UnscaledWidths ๐Ÿ”’