Behdad Esfahbod
cb4cc445a2
Merge pull request #5419 from harfbuzz/tiny-fix
...
Fix build with `-DNDEBUG`
2025-07-25 03:51:23 -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
911277fbc0
Merge pull request #5414 from harfbuzz/subset-breakup
...
Break up `hb-subset.cc` into smaller files
2025-07-25 00:40:07 -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
ff46559b67
[benchmark-shape] Massage message again
2025-07-24 00:34:37 -06:00
Behdad Esfahbod
5991cb3d03
[benchmark-shape] Change message
2025-07-24 00:30:06 -06:00
Behdad Esfahbod
0a7a760ae1
[benchmark-shape] Skip shaper if shaping failed
2025-07-24 00:28:51 -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
3750c0e991
Merge pull request #5407 from harfbuzz/kbts-touchup
...
[kbts] Clean up font initialization
2025-07-23 23:55:44 -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
112f0e0ef2
Merge pull request #5406 from harfbuzz/kbts-buffer
...
[kbts] Streamline buffer management
2025-07-23 23:11:18 -06:00
Behdad Esfahbod
41b89ee887
[kbts] Streamline buffer management
2025-07-23 20:19:57 -06:00
Behdad Esfahbod
04010aad9d
Merge pull request #5403 from harfbuzz/VARC-enabled
...
[VARC] Graduate out of experimental
2025-07-23 18:18:45 -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
Behdad Esfahbod
0c3606b513
[benchmark-font] Respect HB_BENCHMARK_TEXT
2025-07-23 17:06:50 -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
Behdad Esfahbod
fa082b258f
[benchmark-shape] Warm up the font / buffer first
2025-07-23 15:18:13 -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
ad7d4367db
[ci/linux] Enable kbts shaper
2025-07-23 21:39:23 +03:00
Khaled Hosny
16fe5422b6
[kbts] Add some tests
2025-07-23 21:39:23 +03: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