Repository navigation
This release tracks HarfBuzz 15.2.0 and requires Rust 1.85 or later.
Added
- Add an experimental WebAssembly shaper for fonts with a
Wasmtable.
Enable thewasmCargo feature and selectShaper::Wasmthrough
ShapeOptions::shapersto use it. OpenType remains the default.
hr-shapesupports--list-shapersand--shapers=wasm,ot. - Add
Buffer::glyph_infos_rawandBuffer::glyph_positions_raw, raw views
of a buffer's items and positions. Calling them again leaves an earlier
pointer valid; borrowing the items or reallocating the buffer, which
Buffer::reservecan do, may not. - Add
Buffer::has_positions, which says whether a buffer has glyph
positions without borrowing them.
Changed
- Speed up shaping with multiple ranged features on monotone clusters and
tracing callbacks that only read the message text. - Color-glyph paint callbacks that recurse into another glyph must guard
against cycles and limit their own recursion depth, as in HarfBuzz.
Fixed
- Match HarfBuzz in four shaping fixes made after 15.2.0: give the USE generic
bases U+2015, U+2022 and U+25FB..U+25FE their class; apply verticalkern
andkerxvalues in the advance direction, and apply vertical state-machine
kerning at all; put the dotted circle after a reph written as Ra + Halant in
a broken Indic cluster; and fail the buffer when an AAT state machine that
does not advance spends the work budget. - Charge only non-advancing AAT state transitions against that budget, so
long runs that make progress can finish shaping. - Honor variation selectors in C glyph lookups, including legacy Arabic
mappings for default variation sequences. Match HarfBuzz when synthesizing
missing glyph origins, converting glyph names, and computing fallback
baselines for OpenType script tags. - Fix the lifetime of C glyph-array pointers across repeated getter calls,
and handle reentrant destroy callbacks when replacing callbacks or
destroying objects. Paged getters now clear the output count when called
without an array. - Include the Unicode data license in the published
harfrustcrate.