Commit Graph
15186 Commits
Author SHA1 Message Date
Khaled Hosny 880eb464d1 [graphite2] Use signed int for current advance
Graphite can return negative advances, but we were storing current x and
y advances as unsigned ints. The `curradvx` and `curradvy` variables are
used only when calculating the respective offset, but the advance itself
it always taken from Graphite directly, so using signed here makes no
difference to how advances are set, only the offsets.

Fixes https://github.com/harfbuzz/harfbuzz/issues/5439
2025-08-04 01:18:00 +03:00
Khaled Hosny 5a443ade9f [ci] Add a script to extract release notes from NEWS file
Add a script to extract the release notes from the NEWS files and use
them when creating GitHub releases, so that we don’t need to copy them
manually.

Add also a test to make sure the NEWS file always have release notes for
the current release.
2025-07-30 01:19:29 +03:00
Qunxin Liu cd49b14b4f [subset] add more aggressive pruning for MarkLigPos and MarkMarkPos (#5434)
Remove lig/mark glyphs without defined anchor points after subsetting
2025-07-29 15:32:26 -06:00
Garret Rieger 7d7f868109 Don't cast negative advance to unsigned. (#5436) 2025-07-29 14:31:53 -06:00
Behdad Esfahbod 7af1df6725 Revert "Merge branch 'main' into HVF"
This reverts commit 3a64fce9b7, reversing
changes made to f63d960c4e.
2025-07-28 10:24:45 -06:00
Behdad Esfahbod 57565de18a Revert "[hvgl] Fix cast-align issue"
This reverts commit b03089bf56.
2025-07-28 10:20:28 -06:00
Behdad Esfahbod 57f0eb804a Add pragma GCC diagnostic ignored "-Wold-style-cast" (#5431)
From https://github.com/SFML/SFML/pull/3543#issuecomment-3126532776
2025-07-28 06:10:45 -06:00
Behdad Esfahbod 290063c643 [face] Fix a potential crasher if not enough font data
In hb_face_count().

Fixes https://github.com/memononen/Skribidi/pull/67
2025-07-28 03:19:17 -06:00
Behdad Esfahbod c7ec53d991 Try to fix build on gcc-8 (#5430)
* [machinery] Use std::forward in StructAfter

Might not fix https://github.com/harfbuzz/harfbuzz/issues/5429
but I was inspecting there and looks relevant.

* [machinery] Write StructAfter as an auto-return

Maybe fixes https://github.com/harfbuzz/harfbuzz/issues/5429

* [machinery] Another try at fixing gcc-8

Trying to fix https://github.com/harfbuzz/harfbuzz/issues/5429
2025-07-27 19:55:21 -06:00
Behdad Esfahbod 4df970fcbe Merge tag '11.3.3'
11.3.3
2025-07-26 14:07:11 -06:00
Behdad Esfahbod c3fcbffa65 11.3.3 2025-07-26 14:00:32 -06:00
Behdad Esfahbod 5565d78d4f [ot-font] Fix v-advance if font has no vmtx table
Fixes https://github.com/harfbuzz/harfbuzz/issues/5425
2025-07-26 13:58:39 -06:00
Behdad Esfahbod 3918f0857b [ot-font] Fix v-advance if font has no vmtx table
Fixes https://github.com/harfbuzz/harfbuzz/issues/5425
2025-07-26 12:51:39 -06:00
Behdad Esfahbod 11daf566a3 [GDEF] Rename a var 2025-07-26 06:35:20 -06:00
Behdad Esfahbod 7b56d3a1e5 [ot-layout] s/hb_ot_lookup_cache_t/hb_ot_layout_mapping_cache_t/g 2025-07-26 06:29:10 -06:00
Behdad Esfahbod 09978fc510 [ot] Rename hb_ot_lookup_cache_op_t, and cache to subtable_cache 2025-07-26 06:29:10 -06:00
Behdad Esfahbod a220479fae Remove std::forward inside loops (#5424)
* [iter,cff] Remove std::forward from inside loops

Was moving multiple times, if args were movable.

* [CPAL] Handle an error

* [serialize] Remove another std::forward in a loop

* [bit-page] Fix a static-analysis out-of-range warning

Code was safe. Just rewrite.

* [ot-layout] Remove another std::forward from inside a loop
2025-07-26 06:10:31 -06:00
Behdad Esfahbod 87aaaf47ce [ragel] Update artifacts (#5421) 2025-07-26 03:51:30 -06:00
Behdad Esfahbod 66231e854b Merge pull request #5420 from harfbuzz/duployan-speedup
Duployan speedup
2025-07-25 06:54:46 -06:00
Behdad Esfahbod f8e0bf1c37 [match_properties_mark] inline and hot 2025-07-25 06:20:22 -06:00
Behdad Esfahbod a592330e46 Sprinkle consts back 2025-07-25 06:20:22 -06:00
Behdad Esfahbod 3c18f60d43 [check-glyph-property] Move the cache check to MarkFilteringSets only 2025-07-25 05:44:39 -06:00
Behdad Esfahbod 5b6836e108 [check-glyph-properties] Cache current lookup-prop's matching result.
Slows down everything other than speeding up Duployan.
2025-07-25 05:44:11 -06:00
Behdad Esfahbod 3ac630a5d8 Merge pull request #5404 from harfbuzz/no-cargo-lock
[rust] Remove Cargo.lock
2025-07-25 04:21:55 -06:00
Behdad Esfahbod 786f8381bd [GDEF] Use bit-set instead of set-digest for mark glyph classes
Most fonts don't even have these. Some, like NotoSansDuployan
have huge ones. This speeds it up by 25%.
2025-07-25 04:00:37 -06:00
Behdad Esfahbod b87d866b35 Fix HB_TINY ninja -Cbuild libs with experimental_api=true 2025-07-25 03:23:04 -06:00
Behdad Esfahbod 75f919876f [src/test-*] Use hb_always_assert() which isn't compiled out under NDEBUG
Part of https://github.com/harfbuzz/harfbuzz/issues/5418
2025-07-25 03:00:38 -06:00
Behdad Esfahbod 2dc0b070e8 [test] Mark a couple functions as unused
Under NDEBUG.
2025-07-25 02:28:44 -06:00
Behdad Esfahbod aadc7ccff1 [subset-table] Add a HB_UNUSED 2025-07-25 02:18:15 -06:00
Behdad Esfahbod 8204e2dc00 [ot-shape] Micro-optimize a loop
By gemini-cli.
2025-07-25 02:01:46 -06:00
Behdad Esfahbod 415ea36ad4 [subset] Break up hb-subset.cc 2025-07-25 00:05:46 -06:00
Behdad Esfahbod 9aa9fc51d3 [subset] Move code around 2025-07-24 22:47:08 -06:00
Behdad Esfahbod 367300ec4b [subset] Move code around 2025-07-24 22:37:14 -06:00
Behdad Esfahbod bdbcd8f632 [subset] Comment 2025-07-24 22:01:26 -06:00
Behdad Esfahbod 675f8ee677 [scalar-cache] Fix sanitizer whining
Fixes https://github.com/harfbuzz/harfbuzz/issues/5410
2025-07-24 21:46:11 -06:00
Behdad Esfahbod 305ac175cf Merge pull request #5412 from qxliu76/mark_base_pos
[subset] MarkBasePos: remove base glyphs with empty base record
2025-07-24 15:54:59 -06:00
Qunxin Liu 879c4ac784 [subset] MarkBasePos: remove base glyphs with empty base record
BaseRecord could become empty if all anchor offsets for retained mark
classes are null
2025-07-24 14:25:54 -07:00
Behdad Esfahbod b03089bf56 [hvgl] Fix cast-align issue
Fixes https://github.com/harfbuzz/harfbuzz/issues/5408
2025-07-24 11:33:34 -06:00
Jan Kelemen 64ebfa04f2 Fix unary minus operator applied to unsigned type, result still unsigned 2025-07-24 11:12:31 -06:00
Behdad Esfahbod b7d5dc85c2 [kbts] Grow buffer exponentially
See comment.
2025-07-24 00:24:48 -06:00
Behdad Esfahbod be585dfc4a [kbts] Don't clear contents
That was resetting props to invalid. We shouldn't touch props.
2025-07-24 00:08:57 -06:00
Behdad Esfahbod 926ad1651a [kbts] Handle a malloc fail 2025-07-23 23:54:24 -06:00
Behdad Esfahbod a98d08a81b [kbts] Fix a compiler warning 2025-07-23 23:48:47 -06:00
Behdad Esfahbod 70e587de9c [kbts] Clean up font initialization 2025-07-23 23:38:45 -06:00
Behdad Esfahbod 41b89ee887 [kbts] Streamline buffer management 2025-07-23 20:19:57 -06:00
Behdad Esfahbod b3258808b9 [rust] Remove Cargo.lock
As per recommendations. I hope this is what they meant.
2025-07-23 20:06:19 -06:00
Behdad Esfahbod f5acbb5ce0 [VARC] Fix HB_NO_DRAW build 2025-07-23 17:48:13 -06:00
Behdad Esfahbod 64b50ec4dc [config] Kill HB_NO_BORING_EXPANSION
As features graduate from it and become part of the standard / default,
one tag doesn't do us any good. Features should be disabled
individually, like using HB_NO_VAR_COMPOSITES.
2025-07-23 17:40:12 -06:00
Behdad Esfahbod 7a708a935c [VARC] Graduate out of experimental 2025-07-23 17:36:54 -06:00
Behdad Esfahbod fc671f0e89 [kb] Clear buffer out flags and stuff 2025-07-23 17:12:31 -06:00