talira

Compare

HarfBuzzHarfRustsubsetter
What it isThe open source text shaping engineA Rust port of the HarfBuzz text shaping engine.Reduces the size and coverage of OpenType fonts.
KindOpen sourceOpen sourceOpen source
Trust0.740.610.38
Stars625633161
Last commit2026-11-252026-11-232026-11-22
LicenceMIT-Modern-VariantMITMIT OR Apache-2.0
PricingFree and open sourceFree and open sourceFree and open source
Free tierYesYesYes
Self-hostable———
Ways to run it———
SOC 2———
HIPAA———
SSO———
API———
Plugins———
MCP server———
CompanyHarfBuzzHarfBuzzTypst
Features
  • OpenType, Apple Advanced Typography (AAT) and Graphite shaping
  • Font subsetting and variable-font instancing (libharfbuzz-subset)
  • Glyph rasterization to bitmaps, including color fonts (libharfbuzz-raster)
  • Glyph output to SVG and PDF (libharfbuzz-vector)
  • GPU glyph rendering with GLSL, WGSL, MSL and HLSL shaders (libharfbuzz-gpu)
  • Integrations with FreeType, CoreText, DirectWrite, Uniscribe, Cairo, ICU and GObject
  • Command-line tools: hb-shape, hb-view, hb-subset, hb-info, hb-raster, hb-vector
  • Stable API and ABI back to the 0.9.x series
  • All 10 features
  • port of HarfBuzz's shaping and Unicode routines, tracking a named HarfBuzz release
  • OpenType GSUB and GPOS layout with script-specific shapers
  • fonts parsed with read-fonts from fontations, shared with skrifa
  • variable font support through font variation coordinates
  • opt-in tracing of every shaping step, compatible with no_std
  • hr-shape command-line tool with a --trace option
  • C API (harfrust_capi) mirroring HarfBuzz's hb_ API as hr_, linkable alongside HarfBuzz
  • passes most of HarfBuzz's test and fuzzing suites
  • All 10 features
  • subsets OpenType fonts with TrueType (glyf) or CFF outlines
  • removes tables and data a PDF doesn't need for very small subsets
  • glyph remapping so content streams can use the new glyph IDs
  • unsafe code forbidden; a single dependency (rustc-hash)
Limitations
  • Doesn't do font hinting or autohinting: use FreeType or Skrifa for hinted rasterization
  • Doesn't do bidirectional text reordering (bidi): apply the Unicode bidi algorithm with ICU or FriBidi first
  • Doesn't do line breaking, hyphenation or justification: it shapes text along a single line
  • Doesn't support Graphite fonts: only OpenType shaping is ported from HarfBuzz
  • Doesn't take a font size: shaping always works in font units (units per em) and you scale the results yourself
  • Doesn't integrate with FreeType, CoreText, DirectWrite, ICU or GLib: fonts are parsed with read-fonts and the Unicode functions are its own
  • Doesn't fall back on malformed fonts: it returns an error where HarfBuzz uses a fallback shaper
  • Doesn't subset fonts: HarfBuzz's subsetter is ported separately as skera in fontations
  • Doesn't make subsets usable outside PDFs: it strips data that other uses of a font need, on purpose
  • Doesn't instance variable fonts at chosen variation coordinates: listed only as possible future work