NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #5025 most downloaded on crates.io
A straight translation of the font loading code in stb_truetype.h from C to Rust.
Latest stable
0.3.1
Last release 7 years ago
no release in 18 months
Release timing varies
gaps range from 8 days to 12 months
Nearly every release is documented
notes for 13 of 13 stable releases
1 version withdrawn
withdrawn after publishing
11 years old
14 releases · first in 2016
Drag across the ruler to compare, or tap a release to open it.
Update libm -> 0.2.1 .
0.2.1.Support no-std usage by disabling new default feature std. `rust stb_truetype = { version = "0.2", default-features = false, features = ["libm"] } `
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.
0.3 with default-features on.Your coding agent can read these notes before it upgrades. Set up the MCP server →
yanked
yanked
Implement PartialEq, Eq, Hash for Vertex, VertexType, Rect, HMetrics, VMetrics.
Copy for FontInfo.PartialEq, Eq, Hash for Vertex, VertexType, Rect, HMetrics, VMetrics.1.1 as a minimum to avoid compile errors with earlier versions.Fix get_glyph_shape panic with Consolas character \u{feff}.
get_glyph_shape panic with Consolas character \u{feff}.Fix glyph positioning bug for compound glyphs (#18).
Add is_collection(&[u8]) -> bool.
is_collection(&[u8]) -> bool.VertexType implements Eq.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.
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.
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 to i32 instead of u32 to match stb_truetype.h (see issue #3).
get_glyph_pair_kern_advance by switching to i32 instead of u32 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.
One column per quarter.