Commit Graph
15157 Commits
Author SHA1 Message Date
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 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
Garret Rieger 8c79e4f8a0 [repacker] Add batch version of move_child().
Move child is O(n) where n = number of links on the parent object. The batch version is also O(n). Use this in ligature splitting clone range to avoid O(n^2) behaviour.
2025-07-23 16:46:36 -06:00
Garret Rieger 38181c3fbf [repacker] cache liga index to object id maps between clone_range calls. 2025-07-23 16:46:36 -06:00
Garret Rieger 1caab75bfd [repacker] fix O(n^2) behaviour in LigatureSubstFormat1::clone_range. 2025-07-23 16:46:36 -06:00
Garret Rieger ee4a7a3208 [repacker] fix O(n^2) in LigatureSubstFormat1::shrink. 2025-07-23 16:46:36 -06:00
Garret Rieger 870b37bab6 [repacker] optimize ligature splitting implementation.
Eliminate O(n^2) behaviour in compute_split_points().
2025-07-23 16:46:36 -06:00
Behdad Esfahbod a2b8585906 [kbts] Fix Indic stuff
We were trying with 'dev3' tag and failing, as kbts only undersetands
'dev2' tags. Try all and stop at first accepted.
2025-07-23 15:32:33 -06:00
Garret Rieger dd347eb4e2 [VARC] fix potential unitialized value use in get_extents_without_var_scaled.
Callers of get_extents_without_var_scaled assume it will set extents if it has returned true.
2025-07-23 14:23:07 -06:00
Qunxin Liu 4b00cec0ea [subset] bug fix for COLRv1 layer index closure 2025-07-23 13:28:11 -06:00
Garret Rieger 04d60de6ae [CFF2] Fix fuzzer failure in CFF2.
Fixes https://oss-fuzz.com/testcase-detail/5291661985120256
2025-07-23 12:59:22 -06:00
Khaled Hosny 1e7b99c53b [kbts] Support features
Probably does too many reallocations, but it works.
2025-07-23 21:39:23 +03:00
Khaled Hosny 7d219f0bf3 [kbts] Add shaper 2025-07-23 21:39:23 +03:00
Khaled Hosny bb3a839496 [kbts] Add dummy shaper
Just the infrastructure to build the shaper.
2025-07-23 21:39:23 +03:00
Behdad Esfahbod 3a64fce9b7 Merge branch 'main' into HVF 2025-07-23 00:29:55 -06:00
Behdad Esfahbod f63d960c4e Fix a MSVC warning re __has_builtin
Fixes https://github.com/harfbuzz/harfbuzz/issues/5395
2025-07-22 16:59:48 -06:00
Caolán McNamara d7e0a6d573 const up thai_below_start_state 2025-07-22 14:32:55 -06:00
Behdad Esfahbod de2efbf375 [glyf] Another OOM fix 2025-07-21 22:49:11 -06:00
Behdad Esfahbod c0052d1753 [ot-font] Handle scratch alloc failures
Might fix https://issues.oss-fuzz.com/issues/433311403
2025-07-21 22:49:11 -06:00
Behdad Esfahbod 4e3df1c138 11.3.2 2025-07-20 18:12:39 -06:00
Behdad Esfahbod 8991fa7a89 [rust] Roll forward
Give clippy more time.
2025-07-20 18:12:39 -06:00
Andrew Murray b6552d7e60 Corrected syntax 2025-07-21 08:44:24 +10:00
Behdad Esfahbod 95a15d5313 11.3.1 2025-07-20 14:15:02 -06:00
Behdad Esfahbod 166e7024c7 [font] Fix glyph_v_origin copy/pasta
Ouch!
2025-07-20 13:57:33 -06:00
Khaled Hosny 30e7af11ee 11.3.0 2025-07-20 21:40:37 +03:00
Khaled Hosny 639adcf229 Fix missing REPLACEME version numbers from 11.2.0 release 2025-07-20 21:08:56 +03:00
Behdad Esfahbod fc86cd9250 [DeltaIndexMap] Add a HB_HOT 2025-07-20 10:39:29 -06:00
Behdad Esfahbod e0a06c94e5 [algs] Mark bsearch as hot
Doesn't make a difference in the generated code though.
2025-07-20 07:19:23 -06:00
Behdad Esfahbod 56f888cea1 [cache] Mark get/set as hot 2025-07-20 07:19:23 -06:00
Behdad Esfahbod 4214bfef55 [cache] Simplify return 2025-07-20 07:19:23 -06:00
Behdad Esfahbod bc51ad67e6 [DeltaIndexMap] Micro-optimize 2025-07-20 07:19:23 -06:00