Rust API for loading, scaling, positioning and rasterizing OpenType font glyphs
Font::glyph_svg_image
for accessing glyph svg data.Font::font_data
for accessing underlying raw font data.0.20
.v2::GlyphImage
and Font::glyph_raster_image2
to expose width and height info.Font::glyph_raster_image
& GlyphImage
.OutlinedGlyph::draw
documentation.0.19
.GlyphImageFormat
variants BitmapMono
, BitmapMonoPacked
, BitmapGray2
, BitmapGray2Packed
,
BitmapGray4
, BitmapGray4Packed
, BitmapGray8
, BitmapPremulBgra32
.Font::h_advance_unscaled
, h_side_bearing_unscaled
, v_advance_unscaled
, v_side_bearing_unscaled
and related ScaleFont
methods now return 0.0
if the font does not define that value.
Previously calls would panic when fonts lacked support.FontVec::as_slice
, FontVec::into_vec
.Rasterizer::new
instead of on each.0.18
.0.17
.std
feature for runtime detected SIMD.