harfbuzz

HarfBuzz text shaping engine

OTHER License

Downloads
255.1K
Stars
4K
Committers
248

Bot releases are visible (Hide)

harfbuzz - 9.0.0 Latest Release

Published by khaledhosny 4 months ago

What's Changed

  • HarfBuzz now the supports the proposed new OpenType “VARC” table. This replaces the previously supported “Variable Composites” experimental feature. “VARC” support is still experimental and it is not enabled unless HarfBuzz is built with experimental APIs enabled:
    https://github.com/harfbuzz/boring-expansion-spec/blob/main/VARC.md
  • Autotools build system have been dropped. Meson is the only supported build system in HarfBuzz going forward.
  • Speed up “AAT” shaping for short words by up to 4%.
  • Ignore unknown “CFF” operators.
  • “hb_subset_input_keep_everything()” now keeps also non-unicode “name” table records.
  • Update the IANA and OpenType language tag registries.
  • Support composite glyphs with very large number of points in hb-draw API.
  • Various build fixes.

New Contributors

Full Changelog: https://github.com/harfbuzz/harfbuzz/compare/8.5.0...9.0.0

harfbuzz - 8.5.0

Published by khaledhosny 5 months ago

What's Changed

  • API for partial instancing is now stable and have been promoted out of experimental APIs.

  • Support instancing “BASE” table.

  • Speedup AAT shaping by 13–30%.

  • Various build fixes.

  • Various subsetter and instancer fixes.

  • New API
    +HB_SUBSET_FLAGS_OPTIMIZE_IUP_DELTAS
    +hb_subset_input_get_axis_range()
    +hb_subset_input_pin_axis_location()

Full Changelog: https://github.com/harfbuzz/harfbuzz/compare/8.4.0...8.5.0

harfbuzz - 8.4.0

Published by khaledhosny 7 months ago

What's Changed

  • Add /bigobj to MSVC compiler flags in meson build, to fix building hb-subset.cc
  • Specify minimum versions of various dependencies in meson and autotools build.
  • When subsetting, place variation store at the end of “GDEF” table to fix shaping issues with some versions of Adobe InDesign.
  • Various build fixes.
  • New API:
    +hb_buffer_set_random_state()
    +hb_buffer_get_random_state()

New Contributors

Full Changelog: https://github.com/harfbuzz/harfbuzz/compare/8.3.1...8.4.0

harfbuzz - 8.3.1

Published by khaledhosny 7 months ago

What's Changed

  • hb_blob_create_from_file_or_fail() on Windows will now try to interpret the file name as UTF-8 first, and as system code page if it is not valid UTF-8.
  • Fix hb_style_get_value() in fonts with “STAT” table.
  • Properly handle negative offsets in CFF table.
  • Update IANA Language Subtag Registry to 2024-03-07.
  • Subsetter now supports subsetting “BASE” table.
  • Subsetter will update “hhea” font metrics in sync with “OS/2” ones.
  • “--variations” option of “hb-subset” now supports leaving out values that should be unchanged, e.g. “wght=:500:” will change the default and keep max and min unchanged. It also supports “*=drop” to to pin all axes to default location.
  • Fix hb_ot_math_get_glyph_kerning() to match updated “MATH” table spec.
  • Support legacy MacRoman encoding in “cmap” table.
  • Various build fixes.
  • Various subsetting and instancing fixes.

New Contributors

Full Changelog: https://github.com/harfbuzz/harfbuzz/compare/8.3.0...8.3.1

harfbuzz - 8.3.0

Published by khaledhosny 11 months ago

What's Changed

  • Improve memory barrier to fix potential segfaults.

  • Various build fixes.

  • Various subsetting and instancing fixes.

  • Rename “hb-subset” option “--instance” to “--variations” to match the other
    tools. Old option is kept as an alias.

  • New API:
    HB_AAT_LAYOUT_FEATURE_TYPE_CURSIVE_CONNECTION

  • Deprecated API:
    HB_AAT_LAYOUT_FEATURE_TYPE_CURISVE_CONNECTION

New Contributors

Full Changelog: https://github.com/harfbuzz/harfbuzz/compare/8.2.2...8.3.0

harfbuzz - 8.2.2

Published by khaledhosny about 1 year ago

What's Changed

  • Fix regression from 8.1.0 in shaping fonts with duplicate feature tags.
  • Fix regression from 8.2.0 in parsing CSS-style feature strings.
  • Variable fonts instanciation now handles more tables.
  • Various CMake build improvements.
  • various fixes to build without errors with gcc 4.9.2.

New Contributors

Full Changelog: https://github.com/harfbuzz/harfbuzz/compare/8.2.1...8.2.2

harfbuzz - 8.2.1

Published by khaledhosny about 1 year ago

What's Changed

Unicode 15.1 support.

Full Changelog: https://github.com/harfbuzz/harfbuzz/compare/8.2.0...8.2.1

harfbuzz - 8.2.0

Published by khaledhosny about 1 year ago

What's Changed

  • Various build and fuzzing fixes

  • Improvements to COLRv1 painting.

  • New API:
    +hb_paint_color_glyph_func_t
    +hb_paint_funcs_set_color_glyph_func
    +hb_paint_color_glyph

New Contributors

Full Changelog: https://github.com/harfbuzz/harfbuzz/compare/8.1.1...8.2.0

harfbuzz - 8.1.1

Published by khaledhosny about 1 year ago

  • Fix shaping of contextual rules at the end of string, introduced in 8.1.0
  • Fix stack-overflow in repacker with malicious fonts.
  • 30% speed up loading Noto Duployan font.

Full Changelog: https://github.com/harfbuzz/harfbuzz/compare/8.1.0...8.1.1

harfbuzz - 8.1.0

Published by khaledhosny about 1 year ago

What's Changed

  • Fix long-standing build issue with the AIX compiler and older Apple clang.

  • Revert optimization that could cause timeout during subsetting with malicious fonts.

  • More optimization work:

    • 45% speed up in shaping Noto Duployan font.
    • 10% speed up in subsetting Noto Duployan font.
    • Another 8% speed up in shaping Gulzar.
    • 5% speed up in loading Roboto.
  • New API:
    +hb_ot_layout_collect_features_map()

New Contributors

Full Changelog: https://github.com/harfbuzz/harfbuzz/compare/8.0.1...8.1.0

harfbuzz - 8.0.1

Published by khaledhosny over 1 year ago

What's Changed

  • Build fix on 32-bit ARM.

  • More speed optimizations:

    • 60% speed up in retain-gid (used for IFT) subsetting of SourceHanSans-VF.
    • 16% speed up in retain-gid (used for IFT) subsetting of NotoSansCJKkr.
    • 38% speed up in subsetting (beyond-64k) mega-merged Noto.

Full Changelog: https://github.com/harfbuzz/harfbuzz/compare/8.0.0...8.0.1

harfbuzz - 8.0.0

Published by khaledhosny over 1 year ago

What's Changed

  • New, experimental, WebAssembly (WASM) shaper, that provides greater flexibility over OpenType/AAT/Graphite shaping, using WebAssembly embedded inside the font file. Currently WASM shaper is disabled by default and needs
    to be enabled at build time. For details, see:

    https://github.com/harfbuzz/harfbuzz/blob/main/docs/wasm-shaper.md

    For example fonts making use of the WASM shaper, see:

    https://github.com/harfbuzz/harfbuzz-wasm-examples

  • Improvements to Experimental features introduced in earlier releases:

  • Many big speed optimizations:

    • Up to 89% speedup loading variable fonts for shaping.
    • Up to 88% speedup in small subsets of large (eg. CJK) fonts (both TTF and OTF), essential for Incremental Font Transfer (IFT).
    • Over 50% speedup in loading Roboto font for shaping.
    • Up to 40% speed up in loading (sanitizing) complex fonts.
    • 30% speed up in shaping Gulzar font.
    • Over 25% speedup in glyph loading Roboto font.
    • 10% speed up loading glyph shapes in VarComposite Hangul font.
    • hb-hashmap optimizations & hashing improvements.
  • New macro HB_ALWAYS_INLINE. HarfBuzz now inlines functions more aggressively, which results in some speedup at the expense of bigger code size. To disable this feature define the macro to just inline.

  • New API:
    +HB_CODEPOINT_INVALID
    +hb_ot_layout_get_baseline2()
    +hb_ot_layout_get_baseline_with_fallback2()
    +hb_ot_layout_get_font_extents()
    +hb_ot_layout_get_font_extents2()
    +hb_subset_input_set_axis_range()

New Contributors

Full Changelog: https://github.com/harfbuzz/harfbuzz/compare/7.3.0...8.0.0

harfbuzz - 7.3.0

Published by khaledhosny over 1 year ago

What's Changed

  • Speedup applying glyph variation in VarComposites fonts (over 40% speedup). (Behdad Esfahbod)

  • Speedup instancing some fonts (over 20% speedup in instancing RobotoFlex). (Behdad Esfahbod)

  • Speedup shaping some fonts (over 30% speedup in shaping Roboto). (Behdad Esfahbod)

  • Support subsetting VarComposites and beyond-64k fonts. (Behdad Esfahbod)

  • New configuration macro HB_MINIMIZE_MEMORY_USAGE to favor optimizing memory usage over speed. (Behdad Esfahbod)

  • Supporting setting the mapping between old and new glyph indices during subsetting. (Garret Rieger)

  • Various fixes and improvements. (Behdad Esfahbod, Denis Rochette, Garret Rieger, Han Seung Min, Qunxin Liu)

  • New API:
    +hb_subset_input_old_to_new_glyph_mapping()

New Contributors

Full Changelog: https://github.com/harfbuzz/harfbuzz/compare/7.2.0...7.3.0

harfbuzz - 7.2.0

Published by khaledhosny over 1 year ago

What's Changed

  • Add Tifinagh to the list of scripts that can natively be either right-to-left or left-to-right, to improve handling of its glyph positioning. (Simon Cozens)

  • Return also single substitution from hb_ot_layout_lookup_get_glyph_alternates(). (Behdad Esfahbod)

  • Fix 4.2.0 regression in applying across syllables in syllabic scripts. (Behdad Esfahbod)

  • Add flag to avoid glyph substitution closure during subsetting, and the corresponding --no-layout-closure option to hb-subset command line tool. (Garret Rieger)

  • Support instancing COLRv1 table. (Qunxin Liu)

  • Don’t drop used user-defined name table entries during subsetting. (Qunxin Liu)

  • Optimize handling of “gvar” table. (Behdad Esfahbod)

  • Various subsetter bug fixes and improvements. (Garret Rieger, Qunxin Liu)

  • Various documentation improvements. (Behdad Esfahbod, Josef Friedrich)

  • New API:
    +HB_SUBSET_FLAGS_NO_LAYOUT_CLOSURE
    +HB_UNICODE_COMBINING_CLASS_CCC132

  • Deprecated API:
    +HB_UNICODE_COMBINING_CLASS_CCC133

New Contributors

Full Changelog: https://github.com/harfbuzz/harfbuzz/compare/7.1.0...7.2.0

harfbuzz - 7.1.0

Published by khaledhosny over 1 year ago

What's Changed

  • New experimental hb_shape_justify() API that uses font variations to expand or shrink the text to a given advance. (Behdad Esfahbod)

  • Various build and bug fixes. (Behdad Esfahbod, Garret Rieger, Qunxin Liu)

  • New API:
    +hb_font_set_variation()

Full Changelog: https://github.com/harfbuzz/harfbuzz/compare/7.0.1...7.1.0

harfbuzz - 7.0.1

Published by khaledhosny over 1 year ago

What's Changed

  • Various build and bug fixes.

Full Changelog: https://github.com/harfbuzz/harfbuzz/compare/7.0.0...7.0.1

harfbuzz - 7.0.0

Published by khaledhosny over 1 year ago

What's Changed

  • New hb-paint API that is designed mainly to paint COLRv1 glyphs, but can be also used as a unified API to paint any of the glyph representations supported by HarfBuzz (B/W outlines, color layers, or color bitmaps). (Behdad Esfahbod, Matthias Clasen)

  • New hb-cairo API for integrating with cairo graphics library. This is provided as a separate harfbuzz-cairo library. (Behdad Esfahbod, Matthias Clasen)

  • Support for instancing CFF2 table. (Behdad Esfahbod)

  • Support font emboldening. (Behdad Esfahbod)

  • Support feature ranges with AAT shaping. (Behdad Esfahbod)

  • Experimental support to cubic curves in glyf table, see the spec. (Behdad Esfahbod)

  • Various subsetter improvements. (Garret Rieger, Qunxin Liu, Behdad Esfahbod)

  • Various documentation improvements. (Behdad Esfahbod, Matthias Clasen, Khaled Hosny)

  • Significantly reduced memory use during shaping. (Behdad Esfahbod)

  • Greatly reduced memory use during subsetting CFF table. (Behdad Esfahbod)

  • New command line utility, hb-info, for querying various font information. (Behdad Esfahbod, Matthias Clasen)

  • New hb-shape/hb-view options: --glyphs, --color-palette, --font-bold, --font-grade, and --named-instance. (Behdad Esfahbod)

  • Miscellaneous fixes and improvements.
    (Amir Masoud Abdol, Andres Salomon, Behdad Esfahbod, Chun-wei Fan,
    Garret Rieger, Jens Kutilek, Khaled Hosny, Konstantin Käfer, Matthias Clasen,
    Nirbheek Chauhan, Pedro J. Estébanez, Qunxin Liu, Sergei Trofimovich)

  • New API:
    +HB_FONT_NO_VAR_NAMED_INSTANCE
    +HB_PAINT_IMAGE_FORMAT_BGRA
    +HB_PAINT_IMAGE_FORMAT_PNG
    +HB_PAINT_IMAGE_FORMAT_SVG
    +hb_cairo_font_face_create_for_face
    +hb_cairo_font_face_create_for_font
    +hb_cairo_font_face_get_face
    +hb_cairo_font_face_get_font
    +hb_cairo_font_face_get_scale_factor
    +hb_cairo_font_face_set_font_init_func
    +hb_cairo_font_face_set_scale_factor
    +hb_cairo_font_init_func_t
    +hb_cairo_glyphs_from_buffer
    +hb_cairo_scaled_font_get_font
    +hb_color_line_get_color_stops
    +hb_color_line_get_color_stops_func_t
    +hb_color_line_get_extend
    +hb_color_line_get_extend_func_t
    +hb_color_line_t
    +hb_color_stop_t
    +hb_draw_funcs_get_empty
    +hb_draw_funcs_get_user_data
    +hb_draw_funcs_set_user_data
    +hb_face_collect_nominal_glyph_mapping
    +hb_font_draw_glyph
    +hb_font_draw_glyph_func_t
    +hb_font_funcs_set_draw_glyph_func
    +hb_font_funcs_set_paint_glyph_func
    +hb_font_get_synthetic_bold
    +hb_font_get_var_named_instance
    +hb_font_paint_glyph
    +hb_font_paint_glyph_func_t
    +hb_font_set_synthetic_bold
    +hb_map_keys
    +hb_map_next
    +hb_map_update
    +hb_map_values
    +hb_ot_color_glyph_has_paint
    +hb_ot_color_has_paint
    +hb_ot_layout_script_select_language2
    +hb_ot_name_id_predefined_t
    +hb_paint_color
    +hb_paint_color_func_t
    +hb_paint_composite_mode_t
    +hb_paint_custom_palette_color
    +hb_paint_custom_palette_color_func_t
    +hb_paint_extend_t
    +hb_paint_funcs_create
    +hb_paint_funcs_destroy
    +hb_paint_funcs_get_empty
    +hb_paint_funcs_get_user_data
    +hb_paint_funcs_is_immutable
    +hb_paint_funcs_make_immutable
    +hb_paint_funcs_reference
    +hb_paint_funcs_set_color_func
    +hb_paint_funcs_set_custom_palette_color_func
    +hb_paint_funcs_set_image_func
    +hb_paint_funcs_set_linear_gradient_func
    +hb_paint_funcs_set_pop_clip_func
    +hb_paint_funcs_set_pop_group_func
    +hb_paint_funcs_set_pop_transform_func
    +hb_paint_funcs_set_push_clip_glyph_func
    +hb_paint_funcs_set_push_clip_rectangle_func
    +hb_paint_funcs_set_push_group_func
    +hb_paint_funcs_set_push_transform_func
    +hb_paint_funcs_set_radial_gradient_func
    +hb_paint_funcs_set_sweep_gradient_func
    +hb_paint_funcs_set_user_data
    +hb_paint_funcs_t
    +hb_paint_image
    +hb_paint_image_func_t
    +hb_paint_linear_gradient
    +hb_paint_linear_gradient_func_t
    +hb_paint_pop_clip
    +hb_paint_pop_clip_func_t
    +hb_paint_pop_group
    +hb_paint_pop_group_func_t
    +hb_paint_pop_transform
    +hb_paint_pop_transform_func_t
    +hb_paint_push_clip_glyph
    +hb_paint_push_clip_glyph_func_t
    +hb_paint_push_clip_rectangle
    +hb_paint_push_clip_rectangle_func_t
    +hb_paint_push_group
    +hb_paint_push_group_func_t
    +hb_paint_push_transform
    +hb_paint_push_transform_func_t
    +hb_paint_radial_gradient
    +hb_paint_radial_gradient_func_t
    +hb_paint_sweep_gradient
    +hb_paint_sweep_gradient_func_t
    +hb_set_is_inverted
    +hb_subset_input_keep_everything

  • Deprecated API:
    +hb_font_funcs_set_glyph_shape_func
    +hb_font_get_glyph_shape_func_t
    +hb_font_get_glyph_shape

New Contributors

Full Changelog: https://github.com/harfbuzz/harfbuzz/compare/6.0.0...7.0.0

harfbuzz - 6.0.0

Published by khaledhosny almost 2 years ago

  • A new API have been added to pre-process the face and speed up future subsetting operations on that face. Provides up to a 95% reduction in subsetting times when the same face is subset more than once.

    For more details and benchmarks, see:
    https://github.com/harfbuzz/harfbuzz/blob/main/docs/subset-preprocessing.md

    (Garret Rieger, Behdad Esfahbod)

  • Shaping have been speedup by skipping entire lookups when the buffer contents don't intersect with the lookup. Shows up to a 10% speedup in shaping some fonts. (Behdad Esfahbod)

  • A new experimental feature, Variable Composites (enabled by passing -Dexperimental_api=true to meson), is also featured in this release. This technology enables drastic compression of fonts in the Chinese, Japanese, Korean, and other writing systems, by reusing the OpenType Font Variations technology for encoding “smart components” into the font.

    The specification for these extensions to the font format can be found in:
    https://github.com/harfbuzz/boring-expansion-spec/blob/glyf1/glyf1.md

    A test variable font with ~7160 Hangul syllables derived from the NotoSerifKR-VF font has been built, with existing OpenType technology, as
    well as with the new Variable Composites (VarComposites) technology. The VarComposites font is over 90% smaller than the OpenType version of the font!

    Both fonts can be obtained from the “smarties” repository:
    https://github.com/behdad/smarties/tree/3.0/fonts/hangul/serif

    When building HarfBuzz with experimental features enabled, you can test the “smarties” font with a sample character like this:

    $ hb-view butchered-hangul-serif-smarties-variable.ttf -u AE01 --variations=wght=700
    

    (Behdad Esfahbod)

  • The HarfBuzz subsetter can now drop axes by pinning them to specific values (also referred to as instancing). There are a couple of restrictions currently:

    • Only works with TrueType (glyf) based fonts. CFF2 fonts are not yet supported.
    • Only supports the case where all axes in a font are pinned.

    (Garret Rieger, Qunxin Liu)

  • Miscellaneous fixes and improvements.

    (Behdad Esfahbod, Christoph Reiter, David Corbett, Eli Schwartz, Garret
    Rieger, Joel Auterson, Jordan Petridis, Khaled Hosny, Lorenz Wildberg,
    Marco Rebhan, Martin Storsjö, Matthias Clasen, Qunxin Liu, Satadru Pramanik)

  • New API
    +hb_subset_input_pin_axis_location()
    +hb_subset_input_pin_axis_to_default()
    +hb_subset_preprocess()

harfbuzz -

Published by khaledhosny about 2 years ago

  • Subsetter repacker fixes. (Garret Rieger)
  • Adjust Grapheme clusters for Katakana voiced sound marks. (Behdad Esfahbod)
  • New hb-subset option --preprocess-face. (Garret Rieger)
harfbuzz -

Published by alerque about 2 years ago

  • Don’t add glyphs from dropped MATH or COLR tables to the subset glyphs. (Khaled Hosny)
  • Map rlig to appropriate AAT feature selectors. (Jonathan Kew)
  • Update USE data files to latest version. (David Corbett)
  • Check CBDT extents first before outline tables, to help with fonts that also include an empty glyf table. (Khaled Hosny)
  • More work towards variable font instancing in the subsetter. (Qunxin Liu)
  • Subsetter repacker improvements. (Garret Rieger)
  • New API:
    +hb_ot_layout_lookup_get_optical_bound()
    +hb_face_builder_sort_tables()
Package Rankings
Top 3.3% on Spack.io
Top 15.69% on Repo1.maven.org
Top 19.66% on Anaconda.org
Top 3.06% on Formulae.brew.sh
Top 4.56% on Conda-forge.org
Badges
Extracted from project README
Linux CI Status CircleCI Build Status OSS-Fuzz Status Coverity Scan Build Status Codacy Badge Codecov Code Coverage Packaging status OpenSSF Scorecard xkcd-derived image Packaging status