pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/fonts



Module Name:    pkgsrc
Committed By:   adam
Date:           Fri Nov 20 06:33:05 UTC 2026

Modified Files:
        pkgsrc/fonts/harfbuzz: Makefile.common distinfo
        pkgsrc/fonts/harfbuzz-docs: PLIST
        pkgsrc/fonts/harfbuzz-icu: Makefile

Log Message:
harfbuzz: updated to 15.2.0

Overview of changes leading to 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()


To generate a diff of this commit:
cvs rdiff -u -r1.92 -r1.93 pkgsrc/fonts/harfbuzz/Makefile.common
cvs rdiff -u -r1.181 -r1.182 pkgsrc/fonts/harfbuzz/distinfo
cvs rdiff -u -r1.5 -r1.6 pkgsrc/fonts/harfbuzz-docs/PLIST
cvs rdiff -u -r1.40 -r1.41 pkgsrc/fonts/harfbuzz-icu/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/fonts/harfbuzz/Makefile.common
diff -u pkgsrc/fonts/harfbuzz/Makefile.common:1.92 pkgsrc/fonts/harfbuzz/Makefile.common:1.93
--- pkgsrc/fonts/harfbuzz/Makefile.common:1.92  Thu Nov  5 07:06:36 2026
+++ pkgsrc/fonts/harfbuzz/Makefile.common       Fri Nov 20 06:33:04 2026
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile.common,v 1.92 2026/11/05 07:06:36 adam Exp $
+# $NetBSD: Makefile.common,v 1.93 2026/11/20 06:33:04 adam Exp $
 # used by fonts/harfbuzz-docs/Makefile
 # used by fonts/harfbuzz-icu/Makefile
 
-DISTNAME=      harfbuzz-15.1.0
+DISTNAME=      harfbuzz-15.2.0
 CATEGORIES=    fonts
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=harfbuzz/}
 GITHUB_RELEASE=        ${PKGVERSION_NOREV}

Index: pkgsrc/fonts/harfbuzz/distinfo
diff -u pkgsrc/fonts/harfbuzz/distinfo:1.181 pkgsrc/fonts/harfbuzz/distinfo:1.182
--- pkgsrc/fonts/harfbuzz/distinfo:1.181        Thu Nov  5 07:06:36 2026
+++ pkgsrc/fonts/harfbuzz/distinfo      Fri Nov 20 06:33:04 2026
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.181 2026/11/05 07:06:36 adam Exp $
+$NetBSD: distinfo,v 1.182 2026/11/20 06:33:04 adam Exp $
 
-BLAKE2s (harfbuzz-15.1.0.tar.xz) = 70d81c25407d64c08b19eb3a00d95067fad49cac45152a1b2fcf606d29165cab
-SHA512 (harfbuzz-15.1.0.tar.xz) = c7f69c8d18e6f969a348b7f2173c9fbb9920bce51146462c3535984a82f4b38bd47267bbf8c6ba58c8e0e04a4961abcd74015741b351e346d99aeaf438fda5d0
-Size (harfbuzz-15.1.0.tar.xz) = 20515628 bytes
+BLAKE2s (harfbuzz-15.2.0.tar.xz) = c6f9802c3ef05e155bb6afd2a6a482f6b4e22c187d70e536e5953bcd6de3912d
+SHA512 (harfbuzz-15.2.0.tar.xz) = 8fc95eef4bd90768532f481f0ec9a0a90a7f1fefecb28965ec4f9f1018df0c175403cc7e9fa2ae0626123c8b0193414b4d31f7ce5628cb073b3ee00c780074ff
+Size (harfbuzz-15.2.0.tar.xz) = 20761992 bytes
 SHA1 (patch-src_meson.build) = 5b46f9933d5dea1f842fccf63eb92faae1f7c90f
 SHA1 (patch-util_meson.build) = 22c427472e3e1edd1cb6e3c9da0435da46e31e15

Index: pkgsrc/fonts/harfbuzz-docs/PLIST
diff -u pkgsrc/fonts/harfbuzz-docs/PLIST:1.5 pkgsrc/fonts/harfbuzz-docs/PLIST:1.6
--- pkgsrc/fonts/harfbuzz-docs/PLIST:1.5        Thu Nov  5 07:06:36 2026
+++ pkgsrc/fonts/harfbuzz-docs/PLIST    Fri Nov 20 06:33:04 2026
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.5 2026/11/05 07:06:36 adam Exp $
+@comment $NetBSD: PLIST,v 1.6 2026/11/20 06:33:04 adam Exp $
 share/gtk-doc/html/harfbuzz/HarfBuzz.png
 share/gtk-doc/html/harfbuzz/HarfBuzz.svg
 share/gtk-doc/html/harfbuzz/a-clustering-example-for-levels-0-and-1.html
@@ -61,6 +61,7 @@ share/gtk-doc/html/harfbuzz/api-index-14
 share/gtk-doc/html/harfbuzz/api-index-14-4-0.html
 share/gtk-doc/html/harfbuzz/api-index-14-5-0.html
 share/gtk-doc/html/harfbuzz/api-index-15-1-0.html
+share/gtk-doc/html/harfbuzz/api-index-15-2-0.html
 share/gtk-doc/html/harfbuzz/api-index-2-0-0.html
 share/gtk-doc/html/harfbuzz/api-index-2-1-0.html
 share/gtk-doc/html/harfbuzz/api-index-2-2-0.html

Index: pkgsrc/fonts/harfbuzz-icu/Makefile
diff -u pkgsrc/fonts/harfbuzz-icu/Makefile:1.40 pkgsrc/fonts/harfbuzz-icu/Makefile:1.41
--- pkgsrc/fonts/harfbuzz-icu/Makefile:1.40     Wed Nov 11 11:53:10 2026
+++ pkgsrc/fonts/harfbuzz-icu/Makefile  Fri Nov 20 06:33:05 2026
@@ -1,9 +1,8 @@
-# $NetBSD: Makefile,v 1.40 2026/11/11 11:53:10 wiz Exp $
+# $NetBSD: Makefile,v 1.41 2026/11/20 06:33:05 adam Exp $
 
 # XXX: hack to override meson installation
 INSTALL_DIRS=
 
-PKGREVISION= 1
 .include "../../fonts/harfbuzz/Makefile.common"
 
 PKGNAME=       ${DISTNAME:S/^harfbuzz-/harfbuzz-icu-/1}



Home | Main Index | Thread Index | Old Index