Rust API for loading, scaling, positioning and rasterizing OpenType font glyphs
std
feature for runtime detected SIMD.VariableFont
trait implemented by FontRef
& FontVec
. Provides variations
& set_variation
functions.variable-fonts
.Font::pt_to_px_scale
to ease converting point size to PxScale
.PxScale::round
.0.15
.0.14
.0.13.2
.Font
variants at initialization. This provides
much faster glyph_id
& kern
method performance, results in 25-30% faster layout
benchmark performance.1.0
for coverage values returned by for_each_pixel
now >= 1.0
means fully covered.
This allows a minor reduction in operations / performance boost.Font::outline
will return None
for rare invalid/empty glyph bounds instead of panicking.Font::glyph_raster_image
for color emoji fonts.