Commit graph

16408 commits

Author SHA1 Message Date
Qunxin Liu
796a0df93e try to fix bot 2023-06-05 15:40:46 -07:00
Qunxin Liu
ed6bee2004 [instancer] add a test for decompile cvar tuple variations data 2023-06-05 14:03:22 -07:00
Qunxin Liu
bd9cdecd59 [instancer] add decompile_tuple_variations() for cvar table 2023-06-05 13:52:05 -07:00
Qunxin Liu
2012df0755 [instancer] add struct tuple_variation_t
And add function to decompile TupleVariationData into the struct
2023-06-05 13:46:04 -07:00
Qunxin Liu
9f508b7393 [instancer] add unpack_axis_tuples () in TupleVariationHeader 2023-06-05 13:35:28 -07:00
Qunxin Liu
7b0ecbd896 [instancer] add struct tuple_delta_t to represent 1 tuple variation 2023-06-05 13:08:12 -07:00
Behdad Esfahbod
1636e112c4 [cff] Micro-optimize 2023-06-05 13:44:00 -06:00
Behdad Esfahbod
27299e0d20 [subset/cff] Minor use hb_len() 2023-06-05 13:41:04 -06:00
Behdad Esfahbod
377ccb31e1 [subset/cff] Speed up set_offset_at 2023-06-05 13:38:06 -06:00
Behdad Esfahbod
90122925ff [subset/cff1] Minor speedup 2023-06-05 13:33:10 -06:00
Behdad Esfahbod
238cb0fbfd [subset/cff1] Speed up for retaingids 2023-06-05 13:27:03 -06:00
Behdad Esfahbod
9de413bf01 [subset/cff1] Micro-optimize 2023-06-04 17:43:48 -06:00
Behdad Esfahbod
ca353e644d [subset/cff1] Style 2023-06-04 17:40:37 -06:00
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