2.9 KiB
2.9 KiB
v0.2.23
- Update ttf-parser to
0.20.
0.2.22
- Add
v2::GlyphImageandFont::glyph_raster_image2to expose width and height info. - Deprecate
Font::glyph_raster_image&GlyphImage. - Improve
OutlinedGlyph::drawdocumentation.
0.2.21
- Update ttf-parser to
0.19. - Add
GlyphImageFormatvariantsBitmapMono,BitmapMonoPacked,BitmapGray2,BitmapGray2Packed,BitmapGray4,BitmapGray4Packed,BitmapGray8,BitmapPremulBgra32. Font::h_advance_unscaled,h_side_bearing_unscaled,v_advance_unscaled,v_side_bearing_unscaledand relatedScaleFontmethods now return0.0if the font does not define that value. Previously calls would panic when fonts lacked support.- Use edition 2021.
0.2.20
- Add
FontVec::as_slice,FontVec::into_vec.
0.2.19
- Update ttf-parser to
0.18.
0.2.18
- Update ttf-parser to
0.17.
0.2.17
- Add
VariableFonttrait implemented byFontRef&FontVec. Providesvariations&set_variationfunctions. - Add default enabled feature
variable-fonts.
0.2.16
- Add
Font::pt_to_px_scaleto ease converting point size toPxScale. - Add
PxScale::round.
0.2.15
- Fix some font outlines by always trying to "close" them at the end. Fixes Cantarell-VF.otf outlining.
0.2.14
- Update ttf-parser to
0.15.
0.2.13
- Update ttf-parser to
0.14.
0.2.12
- Update owned-ttf-parser to
0.13.2. - Pre-parse cmap & kern subtables on all
Fontvariants at initialization. This provides much fasterglyph_id&kernmethod performance, results in 25-30% faster layout benchmark performance.
0.2.11
Font::outlinewill returnNonefor rare invalid/empty glyph bounds instead of panicking.- Add
Font::glyph_raster_imagefor color emoji fonts.
0.2.10
- Update ttf-parser to
0.12.
0.2.9
- Update ttf-parser to
0.11.
0.2.8
- Add fallback bounding box calculation for malformed font glyphs with zero sized boxes.
- Update ttf-parser to
0.10.
0.2.7
- Update ttf-parser to
0.9.
0.2.6
- Add
Font::codepoint_idsmethod for iterating over(GlyphId, char)pairs. - Clarify documentation.
0.2.5
- Add
Font::units_per_em+ documentation on unscaled font units. - Update ttf-parser to
0.8.
0.2.4
- Update ttf-parser to
0.7adding CID font support.
0.2.3
- Add
v_advance&v_side_bearingmethods toScaleFont+_unscaledvariants toFont.
0.2.2
- Add
Font::glyph_boundsmethod, similar to glyph_brush'sglyph_boundsbut for a single glyph. - Rename
OutlinedGlyph::boundstoOutlinedGlyph::px_boundsfor clarity.
0.2.1
- Update ttf-parser to
0.6.
0.2
- Add
_unscaledsuffix toFonttrait 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.
0.1
- Implement fast glyph layout, outline & drawing primitives.