HarfBuzz is an OpenType text shaping engine.
This package contains the gpu library.
Provides
Requires
License
MIT
Changelog
* Fri Nov 20 2026 Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 15.2.0:
* Performance and hardening:
+ Make `GSUB` and `GPOS` lookups, AAT kerning, and UTF decoding faster.
+ Raise the default work limits for shaping, rendering, and subsetting.
Very complex fonts exceeded the old limits.
+ Fix various crashes, hangs, and high memory use with malformed fonts.
* New features:
+ Add a font constructor that does not install default font functions, for
clients that install their own font functions.
+ Add an API to get the `JSTF` extender glyphs of a script.
+ Support bitmap glyphs in `CBDT` format 19.
* Shaping:
+ Fix per-syllable `GSUB` lookups that matched a glyph 15 syllables later,
for example in long Myanmar text.
+ Fix `GPOS` marks that attached to an earlier base when a ranged feature
did not apply to the nearest base, a regression from 7.0.0.
+ Fix precomposed characters that stayed decomposed in text with no marks,
in the Indic, Khmer, Myanmar, and USE shapers.
+ A global feature request now overrides earlier ranged requests for the
same feature. Before, the ranged request kept its value and could disable
unrelated features.
+ An unsupported character followed by a variation selector now gets the
not-found glyph set on the buffer, instead of always getting glyph 0.
+ Fix fallback mark positioning to use the x offset of the base.
+ Fix cross-stream kerning from the `kern` table. The reset value caused a
large shift. The offset used the scale of the wrong axis.
+ Fix missing unsafe-to-break flags in text with cross-stream kerning from
`kern` or `kerx`.
+ Apply the `kern` table in vertical text when the client requests `vkrn`
and `GPOS` does not have it.
+ Fix missing unsafe-to-break flags with
`HB_BUFFER_CLUSTER_LEVEL_GRAPHEMES`.
* Script-specific shaping:
+ The Indic shaper no longer applies `init` to a first syllable that
follows a letter or mark in the pre-context.
+ The USE shaper no longer uses a space as the base of a dependent vowel.
The vowel now gets a dotted circle.
+ The USE shaper now ends a word at spaces and symbols when it selects
`isol`, `init`, `medi`, and `fina` forms.
+ The Khmer shaper now moves only one Coeng Ro before the base, and only
when it is the first or second coeng of the syllable.
+ A Hangul tone mark at the start of the text now gets only one dotted
circle.
+ An archaic trailing jamo after a Hangul syllable now gets the
unsafe-to-break flag at the character cluster levels.
+ Dotted circles for Hangul tone marks and prohibited vowel sequences now
keep their advance in fonts without `GDEF`.
+ Prohibited vowel sequences now get a dotted circle also when a default
ignorable, such as ZWJ, is between the vowels.
+ The Hebrew shaper now composes presentation forms in fonts that have
`mark` only under the `DFLT` script.
+ The Arabic shaper now centers `stch` tiles on short words and exact fits.
* AAT shaping:
+ Fix `trak` tracking in vertical text, where positive tracking decreased
the spacing.
+ Apply the pair and class kerning of `kerx` together with `GPOS` when
`GPOS` has no kerning feature. Before, HarfBuzz did not apply `kerx` in
such fonts.
+ A later request for a feature now overrides earlier requests, as in
OpenType shaping.
* Other shapers and font functions:
+ Update HarfRust to 0.16.1. The HarfRust shaper now uses the not-found
glyph set on the buffer.
+ Fix vertical advances of `trak` fonts with the CoreText font functions.
+ Fix the CoreText face loader, which could select the wrong face of a font
collection, or a named instance.
+ Fix vertical glyph origins with the FreeType font functions in fonts with
vertical bearings that are not centered, a regression from 15.1.0.
+ `hb_ft_font_create()` no longer loads a second FreeType face when
FreeType provides the default font functions.
* Core library:
+ The deprecated `hb_font_set_face()` now does nothing. To use another
face, create a new font with `hb_font_create()`.
+ Fix scaled glyph extents, which could be smaller than the glyph. The
extents now round outward on both axes, after scaling. The extents of
fractional outlines can grow by one unit.
+ Empty glyphs now have zero extents. Before, they could have a negative
width and a positive height.
* Fix `hb_style_get_value()`:
+ The `OS/2` optical size is now in points, not in twentieths of a point.
+ The slant angle from `fvar` or `STAT` now includes the synthetic slant.
+ The function now skips `STAT` values that are for older sibling fonts.
+ Fix `hb_face_collect_unicodes()`, which missed most code points of `cmap`
format 13 subtables.
+ Fix the position of nested `glyf` components that use anchor points.
+ `hb_buffer_get_glyph_positions()` now returns zero positions for items
that the client added after the first call. Before, those positions could
be uninitialized or old.
* Subsetting:
+ Subsetting now keeps glyph IDs if it keeps a table whose glyph IDs it
cannot change, such as an AAT, Graphite, `SVG`, or bitmap table. Before,
such a table referred to the wrong glyphs.
+ Subsetting now keeps hinting in fonts that require it for correct
rendering, even with `HB_SUBSET_FLAGS_NO_HINTING`.
+ Subsetting now removes the `.notdef` outline from `CFF` and `CFF2` fonts,
as it does from `glyf` fonts, unless the client sets
`HB_SUBSET_FLAGS_NOTDEF_OUTLINE`.
+ Fix subsets that did not keep all glyphs produced by context rules with
many lookups, or by Indic features.
+ Fix subsets that did not keep the `MATH` data of glyphs that `GSUB`
produces.
+ Fix subsetting `CFF2` fonts with `FDSelect` format 4, which kept only the
first Font DICT. Glyphs of other Font DICTs had wrong or no outlines.
+ Keep `cmap` subtables with the Microsoft Symbol encoding when subsetting.
Before, a font with only such subtables lost its `cmap` table.
+ Fix various subsetting problems, mostly for `CFF`, `CFF2`, and variable
fonts. Subsetting is also faster.
* Rendering libraries:
+ Fix the BGRA byte order of the raster library on big-endian systems.
+ Fix color glyphs with many clipped layers, such as Bitcount Ink glyphs,
which exceeded the work limit of the raster library.
+ `hb_raster_draw_render()` now returns `NULL` when a glyph exceeds the
work limit, instead of an empty image.
+ Fix invalid PDF output of the vector library for translucent backgrounds.
+ Fix PNG images with an alpha channel in the PDF output of the vector
library, which wrote the alpha as a color channel.
+ Fix the PDF output of the vector library, which did not use the colors
from `hb_vector_paint_set_custom_palette_color()`.
+ Fix a use-after-free in the GPU and vector libraries when the client
recycles a blob and keeps a sub-blob of it.
+ Fix the GPU library, which did not reset the group depth after a paint
with open groups. Later `hb_gpu_paint_encode()` calls that use groups
then returned `NULL`.
+ Fix color glyphs that the Cairo integration rendered blank, such as the
Spain flag of Noto Color Emoji, a regression from 15.1.0.
* Tools, documentation, and build:
+ Fix `hb-info --list-names` repeating one string for every language of a
name.
+ Fix various documentation problems.
+ Fix various build and CI problems.
* New API: +hb_font_create_without_funcs_or_fail()
+hb_ot_layout_get_extender_glyphs()
* Thu Nov 05 2026 Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 15.1.0:
* Add buffer deserialization APIs that report progress as a byte offset, for
use from introspection bindings.
* Fix Indic shaping of the Unicode 18 Devanagari and Bengali additions.
* Fix Arabic fallback shaping: wrong ligatures when a component is missing
from the font, and disappearing marks in legacy fonts.
* Fix `COLR` glyph extents and mark positioning in fonts with empty layers.
* Fix AAT shaping: wrong `kerx` kerning (formats 1 and 2) and mark
positioning (format 4, a 14.3.0 regression), and ignored `kern` and `mort`
tables with a non-first initial state.
* Various fixes to the Graphite2 shaper.
* Report HarfRust shaping failures through
`hb_buffer_allocation_successful()`.
* Fix wrong outlines in `gvar` fonts with intermediate tuples.
* Fix `hb_face_create_or_fail()` rejecting face indices with named-instance
bits set.
* Fix wrong fallback metrics: the vertical descender in fonts without `vhea`,
and the hanging baseline for some scripts.
* Fix `hb_ot_layout_lookup_collect_glyph_alternates()` collecting garbage
from `AlternateSubst` and `SingleSubst` format 1 lookups.
* Speed up shaping on faces with many shape plans,
`hb_language_from_string()`, vertical text with `hb-ft`, and `CBDT` and
`sbix` fonts.
* Fix crashes and deadlocks with FreeType, including `hb_ft_font_set_funcs()`
on immutable fonts and font queries from color paint callbacks.
* Fix crashes with NULL result pointers in
`hb_ot_metrics_get_position_with_fallback()`,
`hb_ot_layout_get_font_extents()`, and `hb_ot_layout_get_font_extents2()`.
* Fix use-after-free in `hb_map_update()` when updating a map from itself.
* Various fixes for crashes, hangs, and memory use with malformed fonts.
* Faster subsetting of large `GSUB` and `GPOS` tables, and smaller `CFF`
output.
* Partially instancing or desubroutinizing `CFF2` fonts with nested blends
now fails instead of changing the outlines.
* Subsetting now fails if a glyph mapping assigns another glyph to glyph 0.
* Fix `hb_subset_axis_range_from_string()` reading past the given length.
* Fix subsetting beyond-64k variable fonts losing `HVAR` advance deltas.
* Various subsetting and instancing fixes, mostly for `CFF`, `CFF2`, and
`COLR`.
* Fix rotated and skewed rectangle clips hiding their contents in the raster
library, and out-of-bounds access when extents change during painting.
* Fix the vector library mirroring path clips in SVG, and writing PDFs with
wrong page bounds and misplaced or clipped `COLR` gradients.
* Fix wrong clipping of `COLR` layers in the GPU library.
* Various Cairo integration fixes, including a memory leak per scaled font.
* Fix `hb-info --list-*` crashes on unusual fonts.
* Various build and CI fixes.
* New API: +hb_buffer_deserialize_glyphs2() +hb_buffer_deserialize_unicode2()
* Fri Oct 23 2026 Dominique Leuenberger <dimstar@opensuse.org>
- Update to version 15.0.0:
* Support for the new tables and formats in the ISO Open Font Format (OFF)
5th edition is now enabled by default:
+ New tables and formats for 24-bit glyph indices (a.k.a. beyond-64k): the
`GLYF`, `LOCA`, `GVAR`, `MAXP`, `HHEA`, `HMTX`, `VHEA`, and `VMTX`
tables, `cmap` format 15, `VORG` version 2, `COLR` `PaintGlyph2`, the
24-bit `GSUB`, `GPOS`, `GDEF`, `BASE`, and `JSTF` formats, and extended
TrueType Collection directories. A test font, `NotoSans-beyond64k.ttf`,
which merges the Noto Sans fonts into a single font, can be found at:
https://drive.google.com/file/d/1vMQI9mZMzfKIMHD96Iie40Oyo9NnnweH/view
+ Cubic curves in `GLYF` outlines.
+ The `DMAP` table, supported since 14.6.0.
* Support instancing axes not referenced by retained `VARC` data. The latest
`VARC` test fonts can be found at:
https://github.com/notofonts/noto-cjk-varco/releases/tag/v0.005
* The raster (`libharfbuzz-raster`), vector (`libharfbuzz-vector`), and GPU
(`libharfbuzz-gpu`) libraries are no longer considered experimental. This
means that the HarfBuzz API and ABI stability guarantees now apply to
these libraries as well.
* Fix possible use-after-free in `hb_font_set_face()`, which now resets the
font functions to the defaults for the new face. The function is now
deprecated. Use `hb_font_create()` instead.
* Fix heap-buffer-overflow in `hb_font_set_variation()` after
`hb_font_set_face()` switches to a face with more variation axes.
* Subsetting `CFF` and `CFF2` fonts whose subroutine calls are not preceded
by an immediate subroutine number now fails instead of silently dropping
the table, unless desubroutinizing.
* Overriding atomic operators at compile time is not supported anymore.
* Rewrite the number parser without Ragel, fixing various edge cases.
* Harden the experimental WebAssembly shaper against malicious fonts.
* Update the experimental Rust shaper (HarfRust) to 0.15, and the
`fontations` font functions to read-fonts 0.46.
* Update the `kbts` shaping backend to `kb_text_shape` 2.28g, and support
font variations in it.
* Various subsetting and instancing fixes, especially for `CFF2`, `COLR`,
and variable layout tables.
* Various fixes to the raster and vector libraries.
* Various variable font fixes.
* Various fixes for malformed fonts.
* Various documentation fixes.
* Various build and CI fixes.
* Deprecated API: -hb_font_set_face()
* Tue Oct 06 2026 Dominique Leuenberger <dimstar@opensuse.org>
- Update to version 14.6.0:
* Fix shaping failures caused by out-of-range glyph IDs, a regression from
* Update experimental beyond-64k support to the final ISO Open Font Format
5th edition. This support remains disabled by default.
* Add support for the `DMAP` table.
* Support `FeatureVariations` 1.1 lookup variations, including subsetting
and instancing.
* Update `VARC` to the revised variation-store format. The new format is
incompatible with the previous one.
* Various `VARC` fixes.
* Fix background color and stride handling in the experimental raster
library.
* Improve the experimental Rust shaper (HarfRust) and font functions
(`fontations`), and update HarfRust to 0.14.
* Various subsetting fixes and improvements.
* Various fixes for malformed fonts.
* Various build and CI fixes.
* Thu Oct 01 2026 Dominique Leuenberger <dimstar@opensuse.org>
- Update to version 14.5.1:
+ Map the `fonupa` (Uralic Phonetic Alphabet) BCP 47 variant to
the `UPPH` OpenType language system tag.
+ Produce smaller `cmap` subtables and drop no-op variation
device tables when subsetting.
+ Fix possible deadlock in `hb_font_destroy()` after
`hb_ft_font_set_funcs()`, a regression from 14.5.0.
+ Fix signed integer overflows when scaling glyph extents and
applying synthetic slant and emboldening.
+ Fix float-to-int overflow in `VARC` component axis
coordinates with malformed fonts.
+ Fix a memory leak in the experimental WebAssembly shaper when
shaping with features.
+ Fix accumulator overflows in the experimental raster library
when rendering glyphs with very many overlapping edges.
+ Fix heap buffer overflow in the experimental GPU library with
malicious `COLR` fonts.
+ Various build and CI fixes.
- Update version dependencies according to meson.build.
* Mon Sep 21 2026 Dominique Leuenberger <dimstar@opensuse.org>
- Update to version 14.5.0:
+ Update Unicode 18.0 data and script support, including script
values for Jurchen, Proto-Cuneiform, and Seal, and the
corresponding shaping support.
+ Add support for VARC table subsetting, including pruning
auxiliary data, remapping glyph IDs, and guarding the feature
in lean builds.
+ Add rendering work budgets to the draw and paint APIs and share
them across the raster, vector, GPU, and Cairo renderers so
nested outline work remains bounded.
+ Improve performance in set iteration, lookup traversal, and the
repacker, and add coverage for new benchmarks and fuzzing seeds
+ Fix various correctness and robustness issues across the CFF,
Graphite, DirectWrite, and repacker code paths, including
memory leaks, overflow checks, bounds issues, and
malformed-font handling.
+ Various build, portability, and CI fixes.
* Thu Aug 27 2026 Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 14.4.0:
+ Glyph positions and extents now saturate instead of
overflowing.
+ Arabic Windows-1256 fallback shaping is now enabled on all
platforms.
+ Fix cluster values and a dropped glyph advance in the Graphite
shaper.
+ Fix `avar` axis value mapping in fonts that repeat the boundary
entries.
+ Fix `avar` version 2 partial instancing.
+ Fix `COLR` sweep gradient truncation and unbounded memory use.
+ Faster subsetting, especially for large `GSUB`/`GPOS` and `CFF`
tables.
+ Faster extraction of the experimental glyph dependency graph.
+ Various shaping speedups.
+ Various fixes for crashes and hangs with malformed fonts.
+ Various fixes to the experimental raster, vector, and GPU
libraries.
+ Various improvements to the HarfRust integration shaper.
+ The DirectWrite backend no longer uses the C++ runtime.
+ Various build, portability, and fuzzing fixes.
+ New API: +hb_set_intersects()
* Thu Aug 13 2026 Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 14.3.1:
+ Various fuzzing and build fixes.
+ Various subsetting fixes.
+ Fix AAT insertion at the end of the text.
+ Fix various rendering bugs in the experimental GPU library.
+ WASM shaper code can now read the user features.
* Fri Jul 31 2026 Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 14.3.0:
+ Changes affecting shaping output:
- Lookup order is now respected for mark positioning in the
cross-direction (y in horizontal text, x in vertical text):
marks no longer follow a cross-direction shift that a later
lookup applies to the base. This improves compatibility with
DirectWrite and Core Text.
- Fix mark attachment to ligatures formed from decomposed
glyphs.
- The `calt` feature in Hangul text is now disabled only for
the Jamos, not the whole buffer.
+ Support for partially instancing version of `avar` table, as
well as `CFF2` table.
+ New fill-glyph paint operation and APIs for the common case of
filling a glyph with a solid color.
+ New API to fetch assorted raw values from the `OS/2`, `head`,
and `post` tables.
+ New experimental API to extract a font’s glyph dependency
graph, that applications can use to compute glyph closures
themselves without running the subsetter.
+ New subset flag to convert the charset of a subsetted CID-keyed
`CFF` fonts into identity charset, and a matching `hb-subset`
option. Useful for embedding fonts in PDF.
+ Command-line utilities now handle non-ASCII arguments correctly
on Windows.
+ Various instancing and subsetting fixes.
+ Various fixes to the experimental `harfbuzz-vector`,
`harfbuzz-raster` and `harfbuzz-gpu` libraries.
+ Various improvements to the HarfRust integration shaper.
+ Various build, CI, portability, and fuzzing fixes.
+ Various new APIs.
* Tue Jun 02 2026 Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 14.2.1:
+ Various AAT shaping fixes: legacy mort contextual offsets
(which could produce out-of-font glyph IDs), in-place
deleted-glyph replacements, and overflow in obsolete offset
math.
+ Fix Arabic PUA fallback shaping for the isolated
lam-alef-maksura ligature.
+ Fix float-to-int overflow in avar2 mapping with malformed
fonts.
+ Harden buffer verification after detecting non-monotone
clusters.
+ Various COLR v1 fixes: fix handling of .notdef without paint,
round alpha consistently, and report the root clip under the
font transform