Commit Graph
16395 Commits
Author SHA1 Message Date
Behdad Esfahbod e077ca893e [subset/cff] Micro-optimize 2023-06-04 17:24:38 -06:00
Behdad Esfahbod 126d144196 [subset/cff] Micro-optimize 2023-06-04 16:23:36 -06:00
Behdad Esfahbod a24025c90d [subset/cff1] Micro-optimize 2023-06-04 16:16:05 -06:00
Behdad Esfahbod 5a3ac0ab34 [subset/cff1] Another micro-optimization 2023-06-04 15:37:25 -06:00
Behdad Esfahbod 331398286a [subset/cff1] Micro-optimize 2023-06-04 15:33:22 -06:00
Behdad Esfahbod 595aa58379 [UnsizedArray] Minor simplify operator[] 2023-06-04 15:24:36 -06:00
Behdad Esfahbod 319ea3b967 [UnsizedArrayOf] Simplify operator[]
No need to check for overflow. Caller is responsible for correct
access.
2023-06-04 15:23:20 -06:00
Behdad Esfahbod 6188a3f5a4 [subset/cff] Minor signedness change 2023-06-04 15:12:56 -06:00
Behdad Esfahbod 887f299351 [susbet/cff] Reuse iterator 2023-06-04 15:11:35 -06:00
Behdad Esfahbod f5b8284633 [subset/cff1] Minor use hb_len 2023-06-04 15:10:08 -06:00
Behdad Esfahbod 7063817071 [subset/cff1] Speed up writing 1byte charstrings
As in the holes of retaingids.
2023-06-04 15:03:16 -06:00
Behdad Esfahbod 21ff023a46 [subset/cff1] Speed up encoding for retaingids 2023-06-04 14:08:24 -06:00
Behdad Esfahbod b152223998 [cff] Minor type change 2023-06-04 13:58:10 -06:00
Behdad Esfahbod 640774b9f1 [subset/cff] Speed up subsr subset for retaingids 2023-06-04 13:26:14 -06:00
Behdad Esfahbod 6b11a3d971 [subset/cff] Speed up closure_subroutines for retaingids 2023-06-04 13:18:43 -06:00
Behdad Esfahbod 31014832a9 [cff1] More hygiene 2023-06-04 12:58:02 -06:00
Behdad Esfahbod bf0a08c930 [cff1] Hygiene 2023-06-04 12:54:35 -06:00
Behdad Esfahbod ebc5257e29 [cff1] Add a couple of unlikely's 2023-06-04 11:25:16 -06:00
Behdad Esfahbod 9cdc0b6419 [subset/cff] Speed up subset_cff_fdselect 2023-06-04 11:18:56 -06:00
Behdad Esfahbod 858a022358 Revert "[cff] Optimize writing out Index offsets"
This reverts commit 78ba23c587.

Not enough gain, and bloats code size.
2023-06-04 10:55:41 -06:00
Behdad Esfahbod 78ba23c587 [cff] Optimize writing out Index offsets 2023-06-04 10:52:19 -06:00
Behdad Esfahbod 89ce804833 [serialize] Remove attribute malloc
This broke tests. It wasn't technically correct.
2023-06-04 10:20:39 -06:00
Behdad Esfahbod 3f2a1b644a Fix build 2023-06-04 10:13:53 -06:00
Behdad Esfahbod e1715056fc [serialize] One more attribute 2023-06-04 10:09:02 -06:00
Behdad Esfahbod 15048e50ec [serialize] Add more function attributes 2023-06-04 10:07:04 -06:00
Behdad Esfahbod aad12ca649 [serialize] Add a few function attributes 2023-06-04 09:57:51 -06:00
Behdad Esfahbod 4e076da9d0 Another try at fixing build 2023-06-04 09:49:08 -06:00
Behdad Esfahbod b08866afda Fix build 2023-06-04 09:44:37 -06:00
Behdad Esfahbod 82741304d3 [subset] start_embed never returns nullptr
Remove checks.
2023-06-04 09:41:41 -06:00
Behdad Esfahbod c2eaedd2cd [fuzzing] Add a test font
From https://oss-fuzz.com/testcase-detail/5855710991482880
2023-06-04 09:25:17 -06:00
Behdad Esfahbod af3fdf1f9e [subset/glyf] Simplify error handling 2023-06-04 09:24:37 -06:00
Behdad Esfahbod 3dd1de46d6 [subset/glyf] Fix a few return_trace's 2023-06-04 09:15:14 -06:00
Behdad Esfahbod 73f2f935a0 [subset/glyf] Fix another leak 2023-06-04 09:12:18 -06:00
Behdad Esfahbod 3d08a2f10c [subset/glyf] Fix leak 2023-06-03 23:38:38 -06:00
Behdad Esfahbod fc33200d79 [subset/glyf] Avoid a vector copy
Oops!
2023-06-03 23:29:39 -06:00
Behdad Esfahbod 3bfcbd6149 [subset/glyf] Minor use range lopp 2023-06-03 23:17:56 -06:00
Behdad Esfahbod 917c8d0ac5 [subset/glyf] Minor change of value 2023-06-03 23:15:56 -06:00
Behdad Esfahbod 2b8c43135a [vector] Oops! 2023-06-03 23:01:27 -06:00
Behdad Esfahbod 054f966a57 [subset/cff1] Don't allocate memory for retaingid holes
40% speedup in BM_subset/subset_glyphs/SourceHanSans-Regular_subset.otf/retaingids/10
benchmark.
2023-06-03 22:53:05 -06:00
Behdad Esfahbod b5792f117a [subset] Reuse num_glyphs in various places 2023-06-03 22:24:06 -06:00
Behdad Esfahbod 7e4311a868 [cff] Speed up for retaingids 2023-06-03 22:11:47 -06:00
Behdad Esfahbod ca237e6ba8 [subset/cff] Reuse num_glyphs 2023-06-03 22:08:34 -06:00
Behdad Esfahbod 1590754ba8 [subset/cff] Speed up for retaingids 2023-06-03 22:04:52 -06:00
Behdad Esfahbod dff3a936d2 [subset/cff1] Speed up for retaingids 2023-06-03 22:00:28 -06:00
Behdad Esfahbod fa8d15d520 [subset/cff1] Reuse num_glyphs 2023-06-03 21:58:21 -06:00
Behdad Esfahbod 937ead2f02 [subset/hvar] Speed up for retaingids 2023-06-03 21:38:56 -06:00
Behdad Esfahbod acab716b1c [subset/hvar] Speed up for retaingids 2023-06-03 21:15:36 -06:00
Behdad Esfahbod bc6dbf436a [subset/gvar] Micro-optimize 2023-06-03 21:09:33 -06:00
Behdad Esfahbod 841347533a [subset/gvar] Speed up for retaingids 2023-06-03 21:08:30 -06:00
Behdad Esfahbod 87cf09bd2c [subset/loca] Fix up for retaingid null glyphs at the end
We currently don't have those, but in case we add.
2023-06-03 21:00:56 -06:00