Commit Graph
15973 Commits
Author SHA1 Message Date
Behdad Esfahbod 07be0b6878 [VarComposite] Minor micro-optimize 2023-04-29 11:09:28 -06:00
Behdad Esfahbod ecd0f859bd [Composite] Minor micro-optimize 2023-04-29 10:52:49 -06:00
Han Seung Min - 한승민 e768754b0f [buffer] fix hb_buffer_t::similar setting replacement to src.invisible
```cpp
void
hb_buffer_t::similar (const hb_buffer_t &src)
{
  hb_unicode_funcs_destroy (unicode);
  unicode = hb_unicode_funcs_reference (src.unicode);
  flags = src.flags;
  cluster_level = src.cluster_level;
  replacement = src.invisible; // <- this should be src.replacement
  invisible = src.invisible;
  not_found = src.not_found;
}
```
2023-04-29 09:58:38 -06:00
Behdad Esfahbod afd432daf5 [VarComposite] Fix an #ifdef check 2023-04-28 14:55:37 -06:00
Behdad Esfahbod b53f8c25ca [path-builder] Simplify initialization 2023-04-28 14:49:22 -06:00
Behdad Esfahbod 6a4b87d003 [path-builder] Remove double-initialization 2023-04-28 14:48:46 -06:00
Behdad Esfahbod 4a102effd0 [gvar] Minor always pass cache
We now check for access in calculate_scalar(), so no need to
check fof error here.
2023-04-28 14:38:34 -06:00
Behdad Esfahbod 06504cb0a2 [PairPosFormat2] Minor use false instead of 0 2023-04-28 13:13:18 -06:00
Behdad Esfahbod 262f029e20 [algs] Undo touching HACKMEM 169 2023-04-28 12:57:24 -06:00
Behdad Esfahbod 9ed43dc500 [PairPosFormat2] Reuse a value 2023-04-28 12:38:26 -06:00
Behdad Esfahbod 859f7d41cb [set-digest] Comment 2023-04-28 12:23:44 -06:00
Behdad Esfahbod bd62a91d03 [algs] 64bit popcount 2023-04-28 12:01:21 -06:00
Behdad Esfahbod 5b0d818128 [Glyph] Add missing break 2023-04-28 11:40:42 -06:00
Behdad Esfahbod e5dfb6a4b6 [SimpleGlyph] Use hb_memset instead of memset 2023-04-28 11:38:12 -06:00
Behdad Esfahbod 1b0c5a3e63 [VarComposite] Comment 2023-04-28 11:16:11 -06:00
Behdad Esfahbod b0e763f5eb [VarComposite] Micro-optimize get_num_points 2023-04-28 10:45:23 -06:00
Behdad Esfahbod 29d576584d [VarComposite] Micro-optimize 2023-04-28 10:33:50 -06:00
Behdad Esfahbod bf97f88055 [VarComposite] Minor notation 2023-04-28 10:28:17 -06:00
Behdad Esfahbod e9738563ff [VarComposite] Speedup get_size() 2023-04-28 10:22:40 -06:00
Behdad Esfahbod 21ba0b6868 [cvt] Remove unneeded initialization 2023-04-27 19:16:02 -06:00
Garret Rieger b3fed4fa64 [repacker] fix fuzzer found memory leak.
Fixes https://oss-fuzz.com/testcase-detail/5196242811748352
2023-04-27 17:18:47 -06:00
Behdad Esfahbod 247ffe389f Merge pull request #4211 from harfbuzz/glyf-inplace
Glyf inplace
2023-04-27 16:28:47 -06:00
Behdad Esfahbod c800c0cfe1 [Glyph] Load composite glyphs in-place 2023-04-27 16:07:08 -06:00
Behdad Esfahbod f90e3fc3f4 [Composites] Pre-alloc phantom-points space 2023-04-27 14:39:33 -06:00
Behdad Esfahbod 0c7cb57539 [VarComposite] Micro-optimization for advance-only 2023-04-27 14:21:44 -06:00
Behdad Esfahbod bdce23a0c0 [Glyph] Don't load component glyphs is phantom_only
Drastically speeds up variable advance calculation when HVAR
is missing. Let's see what I broke...
2023-04-27 14:07:57 -06:00
Behdad Esfahbod e2be7865f3 [VarComposite] Minor rewrite 2023-04-27 13:55:37 -06:00
Qunxin Liu b9b85da3c9 [instancer] no need to create hb_font_t object when fetching delta from varstore 2023-04-27 13:55:02 -06:00
Behdad Esfahbod 58f79063bb [VarComposite] Set min_size to 5 2023-04-27 13:35:32 -06:00
Behdad Esfahbod 28b5a47d2b [VarComposite] Reuse a variable 2023-04-27 13:31:53 -06:00
Behdad Esfahbod 977c2f9c66 [glyf] Micro-optimize 2023-04-27 13:25:30 -06:00
Behdad Esfahbod a4b4536a17 Revert "[glyf] Micro-optimize"
This reverts commit 2bbb605d08.

In case of phantoms_only we were leaving array uninitialized.
This is why the fedora-valgrind bot broke.
2023-04-27 13:14:52 -06:00
Behdad Esfahbod 1c4e7e4f7e [VarComposite] Rewrite code with ? 2023-04-27 13:05:54 -06:00
Behdad Esfahbod 9491a3dd0b [VarComposite] Minor notation 2023-04-27 13:01:27 -06:00
Behdad Esfahbod 644e0551a2 [VarComposite] Minor move code 2023-04-27 13:00:34 -06:00
Behdad Esfahbod 79aa9e93d3 [VarComposite] Optimize translate, second try 2023-04-27 12:57:25 -06:00
Behdad Esfahbod 83bbeaca20 [VarComposite] Minor move code 2023-04-27 12:49:56 -06:00
Behdad Esfahbod 9b5afad493 [var] Fix assertion
Fixes https://oss-fuzz.com/testcase-detail/4861707188305920
2023-04-27 12:38:44 -06:00
Behdad Esfahbod 7cb95c8ab7 Revert "[VarComposite] Optimize translate()"
This reverts commit 6a55e73d6a.

This was wrong.
2023-04-27 12:28:00 -06:00
Behdad Esfahbod b79a49f1a0 [VarComposite] Optimize get_points() 2023-04-27 12:21:32 -06:00
Behdad Esfahbod 51891e8ff4 [VarComposite] Micro-optimize 2023-04-27 12:16:12 -06:00
Behdad Esfahbod 0f05ced13b [VarComposite] Optimize transformation functions more 2023-04-27 11:59:28 -06:00
Behdad Esfahbod 65ea95b974 [VarComposite] Optimize skew() 2023-04-27 11:56:03 -06:00
Behdad Esfahbod 070f837be6 [VarComposite] Optimize rotate() 2023-04-27 11:56:03 -06:00
Behdad Esfahbod 4e256f5a57 [VarComposite] Optimize scale() 2023-04-27 11:56:03 -06:00
Behdad Esfahbod 6a55e73d6a [VarComposite] Optimize translate() 2023-04-27 11:56:03 -06:00
Behdad Esfahbod cdc02acd3d [VarComposite] Minor adjust initialization values 2023-04-27 11:56:03 -06:00
Behdad Esfahbod a257546de4 [VarComposite] Minor micro-optimize / indent 2023-04-27 11:56:03 -06:00
Behdad Esfahbod 18396b8e27 [VarComposite] Micro-optimize 2023-04-27 11:56:03 -06:00
Behdad Esfahbod 1e71a673e9 [VarComposite] Micro-optimize 2023-04-27 11:56:03 -06:00