Commit Graph
14733 Commits
Author SHA1 Message Date
Behdad Esfahbod 19fd08f0ae [TupleVariation] Inline the hot methods 2025-05-18 11:31:41 -07:00
Behdad Esfahbod 45a22dfcb8 [rust] Fix newer clippy fix 2025-05-17 11:27:26 -07:00
Behdad Esfahbod 8ef23c4877 [TupleVariation] Micro-optimize more 2025-05-17 11:13:36 -07:00
Behdad Esfahbod c35b6eb420 [TupleVariation] Micro-optimize non-common paths too 2025-05-17 11:07:04 -07:00
Behdad Esfahbod 35db5c090c [TupleVariation] Micro-optimize more 2025-05-17 11:02:29 -07:00
Behdad Esfahbod 1e0b04bdec [TupleVariation] Micro-optimize gvar-cache 2025-05-17 10:46:46 -07:00
Behdad Esfahbod d47daacbdf [gvar] Remove shared_tuple_active_idx cache
Reduces malloc overhead and doesn't slow things down much now that
we have a shared_tuple scalar_cache.
2025-05-16 01:16:12 -07:00
Behdad Esfahbod c6097698c6 [ot-font/draw] Use a gvar shared-tuple scalar cache for calculate_scalar
Massive saving on massively variable fonts. Over 30% on a tested font.
2025-05-16 01:11:33 -07:00
Behdad Esfahbod f3108c4b98 [gvar] Remove outdated comment 2025-05-15 18:31:51 -07:00
Behdad Esfahbod f50490d6dd Add hb_scalar_cache_t 2025-05-15 18:28:44 -07:00
Behdad Esfahbod 49b1a4c0fa [TupleVariation] Reduce iteration overhead 2025-05-15 16:54:00 -07:00
Behdad Esfahbod 7fcf7b3cf1 [TupleVariation] Reduce iteration overhead
The check was actually wrong. And we check that upon access
separately.
2025-05-15 16:45:30 -07:00
Behdad Esfahbod 756980ce95 [TupleVariations] Cache all active indices in shared tuples 2025-05-15 15:50:01 -07:00
Garret Rieger 82466d373f Fix cmap4 overflow pathway.
cmap4 serialize was doing a pop_discard() on overflow, however the encoding record above it was also doing one as well. Remove the unnessecary cmap4 pop_dicard(). Note: in cmap4 there was a comment implying the subsequent pop_discard() would be a noop due to the set error, however is not true since pop_discard() still works when there's been an overflow error.
2025-05-15 10:05:18 -06:00
Behdad Esfahbod 08b52ae2e4 [rust] Roll dependencies 2025-05-13 14:13:55 -06:00
Behdad Esfahbod 2da1850798 [gen-ucd-table] Adjust comment with --rust 2025-05-13 00:04:52 -06:00
Behdad Esfahbod b0666e2609 Revert "[unicode] Remove a few lines of cruft"
This reverts commit d978c4b50a.

Ouch!
2025-05-12 23:11:21 -06:00
Behdad Esfahbod d978c4b50a [unicode] Remove a few lines of cruft 2025-05-12 23:08:58 -06:00
Behdad Esfahbod 3175632f6a [gen] Update to latest packtab 2025-05-12 20:55:39 -06:00
Behdad Esfahbod 2534bcf06d [ucd] Update to latest packtab 2025-05-12 20:21:50 -06:00
Behdad Esfahbod 02bc78c7ce [gen-ucd-table] Make --rust functions pub 2025-05-12 20:07:21 -06:00
Behdad Esfahbod 2d1d1b366e [gen-ucd-rust] Fix --rust output 2025-05-12 17:08:08 -06:00
Behdad Esfahbod 9ef4b4ea3f [ucd] Update to latest packTab 2025-05-12 15:45:16 -06:00
Behdad Esfahbod 4f1ee74347 [gen-ucd-table] Fix --rust output 2025-05-12 15:43:15 -06:00
Behdad Esfahbod 37e7120aa7 [ucd] Don't use unsigned literals
More compat with --rust.
2025-05-12 15:30:42 -06:00
Behdad Esfahbod 083ca198d2 [gen-ucd-table.py] black 2025-05-12 15:27:51 -06:00
Behdad Esfahbod d5c4b1eed7 [gen-ucd-table.py] Towards generating --rust output 2025-05-12 15:24:38 -06:00
Behdad Esfahbod f71391fe8d [unicode] Move code around
To better match harfRuzz.
2025-05-12 14:05:39 -06:00
Behdad Esfahbod bbe0fb3761 [tables] Update to latest packTab
We now unconditionally include <stdint.h>; Hopefully not a problem.
2025-05-12 13:53:17 -06:00
Behdad Esfahbod eb40c1f483 [gen-ucd-table] Update for hb-script-list.h 2025-05-12 13:35:48 -06:00
Behdad Esfahbod a99efec945 [common] Fix docs for horizontal_script 2025-05-12 10:57:18 -06:00
Khaled Hosny 33a3f8de60 11.2.1 2025-05-12 19:51:07 +03:00
Behdad Esfahbod 0d696d955a [gsubgpos] Add matcher_t::init() 2025-05-11 11:52:57 -06:00
Behdad Esfahbod adf11168d6 [gsubgpos] Remove unused code in skipping_iterator_t 2025-05-10 17:27:54 -06:00
Behdad Esfahbod 0979e15050 [gsubgpos] Set matcher_t fields directly 2025-05-10 16:58:43 -06:00
Behdad Esfahbod 4abcf104aa [gsubgpos] Simplify per_syllable 2025-05-10 16:55:09 -06:00
Behdad Esfahbod fe3e0b29c2 [gsubgpos] Move matcher_t / skipping_iterator_t out of apply_context_t 2025-05-10 16:42:10 -06:00
Behdad Esfahbod 89e28a2381 [skippy-iter] Use auto for type deduction 2025-05-10 16:30:35 -06:00
Behdad Esfahbod 7ebac5b994 Cosmetic 2025-05-10 15:09:07 -06:00
Behdad Esfahbod d3c70d7fc8 [directwrite] Return 0 advance for out-of-range gids
Fixes https://github.com/harfbuzz/harfbuzz/issues/5319
2025-05-08 14:30:07 -06:00
Behdad Esfahbod 01de51b2f2 [rust] cargo update 2025-05-08 13:32:45 -06:00
Behdad Esfahbod 905e8b6bdd [buffer] Fix set_glyph_flags condition
Follow up to https://github.com/harfbuzz/harfbuzz/pull/5315
2025-05-08 13:24:12 -06:00
David Corbett 7dfbe50dfa [USE] Update the data files
This uses the data files from
<https://github.com/microsoft/font-tools/tree/0c68344234bc5ff9e8575c417a315070a5943968/USE>.
2025-05-08 16:03:02 +03:00
Behdad Esfahbod 593503c5e6 [fontations] More idiomatic 2025-05-08 00:52:36 -06:00
Behdad Esfahbod 98029e2482 [fontations] Deal with font creation errors 2025-05-08 00:49:50 -06:00
Behdad Esfahbod e4a6fe1e5f [harfruzz] Handle empty face blob
Happens...
2025-05-07 23:27:45 -06:00
Behdad Esfahbod 26603305e1 [rust] Make -Dbuildtype=debug work 2025-05-07 22:47:49 -06:00
Behdad Esfahbod d7550eb9b9 [harfruzz] Handle null language 2025-05-07 22:39:44 -06:00
Behdad Esfahbod c18c18a75d [harfruzz] Switch back to git version
Remove font-types dependency.
2025-05-07 21:57:16 -06:00
Behdad Esfahbod 43218e45f7 [harfruzz] Conditionally set hr_buffer.set_not_found_variation_selector_glyph
harfRuzz doesn't take -1 to mean "whatever".
2025-05-07 19:02:04 -06:00