- Update libm ->
0.2.1
.
- Support no-std usage by disabling new default feature
std
.
stb_truetype = { version = "0.2", default-features = false, features = ["libm"] }
- Use semver trick to re-expect stb_truetype
0.3
with default-features on.
yanked
- Implement
Copy
forFontInfo
. - Implement
PartialEq
,Eq
,Hash
forVertex
,VertexType
,Rect
,HMetrics
,VMetrics
. - Require byteorder
1.1
as a minimum to avoid compile errors with earlier versions.
- Fix
get_glyph_shape
panic with Consolas character\u{feff}
.
- Remove all unsafe usage.
- Fix glyph positioning bug for compound glyphs (#18).
- Optimise compound glyph shape computation.
- Add
is_collection(&[u8]) -> bool
. - Remove most unsafe usages.
VertexType
implementsEq
.- Optimise API performance using new benchmark/regression suite
name control ns/iter change ns/iter diff ns/iter diff % speedup
find_glyph_index_deja_vu_mono 1,189 856 -333 -28.01% x 1.39
get_glyph_bitmap_box_subpixel_deja_vu_mono 859 696 -163 -18.98% x 1.23
get_glyph_box_deja_vu_mono 617 276 -341 -55.27% x 2.24
get_glyph_h_metrics_deja_vu_mono 204 184 -20 -9.80% x 1.11
get_glyph_shape_deja_vu_mono 12,304 12,950 646 5.25% x 0.95
get_v_metrics_deja_vu_mono 360 100 -260 -72.22% x 3.60
scale_for_pixel_height_deja_vu_mono 145 118 -27 -18.62% x 1.23
- Merge a number of bugfixes, update documentation links, add new debugging features.
- Fix
attempt to subtract with overflow
error in get_glyph_kern_advance.
FontInfo
is now generic in the storage for the font data, allowing flexible management of font data lifetimes. This is a breaking change.
- Fix for edge case behaviour for
get_glyph_pair_kern_advance
by switching toi32
instead ofu32
to match stb_truetype.h (see issue #3).
- Fix for glyf table format 12 and 13 handling to match implementation in stb_truetype.h (see issue #2).
- Initial release.