Behdad Esfahbod
435a67417e
[beyond-64k] Add CursivePosFormat2
2026-06-05 12:34:51 +02:00
Behdad Esfahbod
7433361337
[gpos] Guard cursive attachment reversal
...
Cursive attachment reversal clears the old child edge before
walking the existing chain and reinstalling reversed links.
If the chain distance does not stay in range for
attach_chain(), reinstalling the reversed edge can truncate
and leave a poisoned chain value.
Pass the buffer length into the reversal helper so it drops
out-of-bounds chains, and use a round-trip fit check before
storing the reversed distance. When the reversed distance does
not fit, leave the old edge detached instead of corrupting
the chain.
Testing: CCACHE_DISABLE=1 meson test -C build --print-errorlogs
Fixes https://issues.chromium.org/issues/496302307
Assisted-by: OpenAI Codex <codex@openai.com >
2026-03-26 14:14:57 -06:00
Behdad Esfahbod
d9e3b4efed
Fix a compiler warning / error
2025-11-25 18:00:39 -07:00
Behdad Esfahbod
844f2fea06
[GPOS] Handle attach_chain() overflow ( #5636 )
...
Fixes https://oss-fuzz.com/testcase-detail/5461871294742528
2025-11-03 20:28:54 -07:00
Behdad Esfahbod
89e28a2381
[skippy-iter] Use auto for type deduction
2025-05-10 16:30:35 -06:00
Behdad Esfahbod
30672c7e75
Add hb_barrier()
...
And annotate some more.
2023-11-04 15:21:47 -06:00
Behdad Esfahbod
775320a4f6
[sanitize] Add barriers to runtime-checked values
2023-11-04 15:21:47 -06:00
Behdad Esfahbod
38546acd83
[typed-offset] Fix sanitize()
2023-10-31 14:56:09 -06:00
Behdad Esfahbod
4f219385a6
[CursivePosFormat1] Use typed offsets for EntryExitRecord
2023-10-31 14:33:23 -06:00
Behdad Esfahbod
483d4a8741
Fix bot
2023-08-06 14:40:45 -06:00
Behdad Esfahbod
7989702aba
Audit and fix up serialize_subset uses
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/4362
2023-08-06 14:17:50 -06:00
Behdad Esfahbod
dcd3afcabf
[skippy-iter] Remove unused num_items
2023-08-01 20:09:34 -06:00
Behdad Esfahbod
9cdc043c16
[Cursive] Only sanitize what we use
2023-07-31 18:53:29 -06:00
Behdad Esfahbod
44026aa8a9
[Cursive] Minor, adjust unsafe-to-concat if prev didn't sanitize
2023-07-31 16:47:06 -06:00
Behdad Esfahbod
b382e616cc
[GPOS] Sanitize Cursive positioning anchors lazily
...
Speeds up Duployan-Regular.otf load time by 30%.
Doesn't seem to slow down shaping in a measurable way.
2023-07-31 16:31:59 -06:00
Behdad Esfahbod
62e6f7835c
[Cursive] round
2023-07-25 08:32:21 -06:00
Behdad Esfahbod
82741304d3
[subset] start_embed never returns nullptr
...
Remove checks.
2023-06-04 09:41:41 -06:00
Behdad Esfahbod
3194963657
Revert "[layout] Cache subtable coverages in hb_map_t"
...
This reverts commit 7a715d74e0 .
2023-05-04 16:29:48 -06:00
Behdad Esfahbod
7a715d74e0
[layout] Cache subtable coverages in hb_map_t
...
Proof-of-concept. Going to revert. Memory consumption is more
than I like. It does speed up Roboto shaping another 15% though.
Perhaps if we could add logic to choose which subtables to
cache, this might be a useful approach.
2023-05-04 16:28:11 -06:00
Behdad Esfahbod
fb795dc3c5
[GPOS] Optimize iterator reset
...
Speeds up Gulzar shaping 5%.
2023-05-03 15:17:36 -06:00
Behdad Esfahbod
045ae4b0b5
[GPOS] Micro-optimize
2023-05-03 13:08:43 -06:00
Behdad Esfahbod
ed023f66df
Enable -Wformat-signedness
...
And fix the codebase.
2023-01-12 17:04:24 -07:00
Behdad Esfahbod
59b05359cd
[GSUB/GPOS] Add more buffer messages
...
Behind HB_BUFFER_MESSAGE_MORE.
https://github.com/harfbuzz/harfbuzz/pull/3495
2022-07-24 18:39:30 -06:00
Behdad Esfahbod
3c137ef041
[GPOS/CursivePos] Fix unsafe-to-break marking
...
Fixes test.
2022-07-20 11:29:30 -06:00
Behdad Esfahbod
54e9ab4a91
[GPOS/Cursive] Fix breaking of parent-child attachment
...
Mostly fixes https://github.com/harfbuzz/harfbuzz/issues/2469
2022-07-18 18:57:14 -06:00
Garret Rieger
88ef3c5a9a
[reorg] Change OT::Layout::GPOS to OT::Layout::GPOS_impl.
2022-06-28 18:47:50 -06:00
Garret Rieger
49ddf069e0
[reorg] Move GPOS reverse_cursive_minor_offset implementation into new directory layout.
2022-06-28 18:47:50 -06:00
Garret Rieger
197d9a5c99
[reorg] Move more GPOS lookups to new directory.
2022-06-28 18:47:50 -06:00
Garret Rieger
c7307ca06a
[reorg] Begin moving GPOS into the new directory layout.
2022-06-28 18:47:50 -06:00