- Update ttf-parser to
0.25
.
- Update ttf-parser to
0.24
. - Clarify
OutlinedGlyph::px_bounds
,Font::glyph_bounds
documentation, describe how they relate to drawing and each other.
- Add
Font
glyph layout concept documentation demonstrating "ascent", "descent", "h_side_bearing", "h_advance", "height", "line_gap", "baseline".
- Update ttf-parser to
0.21
.
- Add
Font::glyph_svg_image
for accessing glyph svg data.
- Add
Font::font_data
for accessing underlying raw font data.
- Update ttf-parser to
0.20
.
- Add
v2::GlyphImage
andFont::glyph_raster_image2
to expose width and height info. - Deprecate
Font::glyph_raster_image
&GlyphImage
. - Improve
OutlinedGlyph::draw
documentation.
- Update ttf-parser to
0.19
. - Add
GlyphImageFormat
variantsBitmapMono
,BitmapMonoPacked
,BitmapGray2
,BitmapGray2Packed
,BitmapGray4
,BitmapGray4Packed
,BitmapGray8
,BitmapPremulBgra32
. Font::h_advance_unscaled
,h_side_bearing_unscaled
,v_advance_unscaled
,v_side_bearing_unscaled
and relatedScaleFont
methods now return0.0
if the font does not define that value. Previously calls would panic when fonts lacked support.- Use edition 2021.
- Add
FontVec::as_slice
,FontVec::into_vec
.
- Update ttf-parser to
0.18
.
- Update ttf-parser to
0.17
.
- Add
VariableFont
trait implemented byFontRef
&FontVec
. Providesvariations
&set_variation
functions. - Add default enabled feature
variable-fonts
.
- Add
Font::pt_to_px_scale
to ease converting point size toPxScale
. - Add
PxScale::round
.
- Fix some font outlines by always trying to "close" them at the end. Fixes Cantarell-VF.otf outlining.
- Update ttf-parser to
0.15
.
- Update ttf-parser to
0.14
.
- Update owned-ttf-parser to
0.13.2
. - Pre-parse cmap & kern subtables on all
Font
variants at initialization. This provides much fasterglyph_id
&kern
method performance, results in 25-30% faster layout benchmark performance.
Font::outline
will returnNone
for rare invalid/empty glyph bounds instead of panicking.- Add
Font::glyph_raster_image
for color emoji fonts.
- Update ttf-parser to
0.12
.
- Update ttf-parser to
0.11
.
- Add fallback bounding box calculation for malformed font glyphs with zero sized boxes.
- Update ttf-parser to
0.10
.
- Update ttf-parser to
0.9
.
- Add
Font::codepoint_ids
method for iterating over(GlyphId, char)
pairs. - Clarify documentation.
- Add
Font::units_per_em
+ documentation on unscaled font units. - Update ttf-parser to
0.8
.
- Update ttf-parser to
0.7
adding CID font support.
- Add
v_advance
&v_side_bearing
methods toScaleFont
+_unscaled
variants toFont
.
- Add
Font::glyph_bounds
method, similar to glyph_brush'sglyph_bounds
but for a single glyph. - Rename
OutlinedGlyph::bounds
toOutlinedGlyph::px_bounds
for clarity.
- Update ttf-parser to
0.6
.
- Add
_unscaled
suffix toFont
trait methods that deal with unscaled metrics. This helps distinguishScaleFont
's scaled metrics and can avoid unintended behaviour. - Rename "libm-math" -> "libm" for consistency with ab_glyph_rasterizer.
- Implement fast glyph layout, outline & drawing primitives.