Commit Graph
13714 Commits
Author SHA1 Message Date
Behdad Esfahbod 3a9262cc3d [sanitize] More hb_barrier() annotations 2023-11-04 15:21:47 -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 cf49f3f2cb [sanitize] Add barrier() 2023-11-04 15:21:47 -06:00
Behdad Esfahbod b16f180044 [sanitize] Yet another hack to "fix" barrier issue 2023-11-04 15:21:47 -06:00
Behdad Esfahbod fd5eb10d3b Merge pull request #4477 from googlefonts/fix_feature_variations
[instancer] Fix feature variations collect lookups
2023-11-03 15:30:15 -06:00
Behdad Esfahbod cdcad93b73 [set] Mark as realloc-movable 2023-11-03 12:46:20 -06:00
Qunxin Liu aca55dbe36 [instancer] fix feature variations collect lookups
We already know which record to keep, so just collect lookups and no
need to check the substitutes_map
2023-11-03 10:51:37 -07:00
Qunxin Liu f05636e1be [instancer] fix build issue after rebase 2023-11-03 10:27:40 -07:00
Qunxin Liu 6c017a1162 [instancer] SinglePos/PairPos: do not strip_hints for partial instancing 2023-11-03 10:27:07 -07:00
Qunxin Liu 413af0a9b2 [instancer] When partial instancing, subset LigCaretList after VarStore instantiation 2023-11-03 10:24:56 -06:00
Behdad Esfahbod b532945987 [tuple_delta_t] Micro-optimize encoding vector access 2023-11-01 16:53:26 -06:00
Behdad Esfahbod 59cfb4c570 [instancing] Micro-optimize a loop 2023-11-01 16:25:50 -06:00
Behdad Esfahbod 29d49eced8 [vector] Introduce realloc_moves tag
Some types (even aggregate) can be moved using realloc().
Extend the fast path to hb_hashmap and tuple_delta_t.
2023-11-01 15:55:47 -06:00
Behdad Esfahbod 2804127ac9 [Value] Typed offsets 2023-10-31 15:30:20 -06:00
Behdad Esfahbod 38546acd83 [typed-offset] Fix sanitize() 2023-10-31 14:56:09 -06:00
Behdad Esfahbod 62117801b8 [AnchorMatrix] Annotate offset base type 2023-10-31 14:50:45 -06:00
Behdad Esfahbod 4f219385a6 [CursivePosFormat1] Use typed offsets for EntryExitRecord 2023-10-31 14:33:23 -06:00
Behdad Esfahbod b37cc61d45 Add base types to OffsetTo<>
Unused so far.
2023-10-31 14:33:19 -06:00
Qunxin Liu 091e538daf [instancer] support partial instancing for FeatureVariations 2023-10-30 12:31:49 -06:00
Behdad Esfahbod bf08205625 [deprecated] Add a mis-spelled macro
Fixes https://github.com/harfbuzz/harfbuzz/issues/4464
2023-10-27 12:24:33 -06:00
Behdad Esfahbod 9fc45f70ad [ReverseChainSingleSubst] Minor optimization 2023-10-23 13:08:29 -06:00
一丝 b0150ffd05 [subset] keep East Asian spacing vhal, halt, chws, vchw by default
Closes: https://github.com/harfbuzz/harfbuzz/issues/4451
2023-10-20 10:18:58 -06:00
Behdad Esfahbod fde1c3692a Merge pull request #4452 from googlefonts/fix_test
[subset] bug fixes for GDEF
2023-10-19 11:04:34 -06:00
Qunxin Liu e595fe75cc fix bots
partial instancing tests are wrapped by experimenal_api, do not enable
them in Makefile
2023-10-19 09:38:38 -07:00
Alexander Borsuk 38f351d113 [docs] Fixed links to freetype FT_LOAD_XXX flags
Signed-off-by: Alexander Borsuk <me@alex.bio>
2023-10-18 17:25:07 -06:00
Qunxin Liu 8ceed6ee72 [subset] fix Lookup.MarkFilteringSet to use the new indices 2023-10-18 15:43:40 -07:00
Qunxin Liu 510456e953 [subset] don't retain empty coverage in MarkGlyphSetsDef 2023-10-18 14:26:11 -07:00
Qunxin Liu 16ee24c050 [subset] bug fix for GDEF
don't use embed(this), snapshot and revert to lower version if needed
2023-10-18 14:11:55 -07:00
Qunxin Liu 8585d600c4 [instancer] update variable device flags in ValueFormat 2023-10-18 08:07:26 -06:00
Qunxin Liu 1a5dd610be [instancer] retain empty rows when region is empty and item_count is not 2023-10-18 08:07:26 -06:00
David Manthey 45a7f9cec3 Change the shebang used for python
The shebang `/usr/bin/python3` assumes python3 is installed in /usr/bin,
which isn't always true (e.g., in the manylinux docker image).  Using
`/usr/bin/env python3` uses the python3 that is in the path, which is
more flexible.
2023-10-18 07:40:40 -06:00
Khaled Hosny 18a6e78549 8.2.2 2023-10-18 01:18:14 +03:00
Garret Rieger 52bc78e70d s/PairPos/MarkBasePos/ in MarkBasePos repacking implementation. 2023-10-16 12:25:25 -06:00
Behdad Esfahbod 6190bb0b8e [layout] Change order of feature collection
See comments for rationale.

Fixes https://github.com/harfbuzz/harfbuzz/issues/4445
2023-10-16 14:11:46 -04:00
Qunxin Liu 1f395cbaf9 [instancer] templatize the priority queue, use custom type for varstore
when instantiating varstore, we need to pop a tuple like
(combined_gain, i, j), if combined gain is the same then we compare the
value of i, and then j. So we'd like to use custom type as the key when
popping from the queue. This would match fonttool's algorithm cause it
uses heappop().
2023-10-13 14:52:27 -06:00
Behdad Esfahbod a7b3fe3523 Fix test 2023-10-05 12:16:00 -06:00
Behdad Esfahbod fc563bb437 Merge pull request #4421 from googlefonts/GDEF_GPOS
[instancer] support GDEF/GPOS tables
2023-10-05 11:07:17 -06:00
jfkthame f360d704fa Check for closing quote in parse_tag
Fixes #4414.
2023-09-29 11:24:36 -06:00
Garret Rieger 333946b00e [subset] Fix fuzzer timeout.
Fixes https://oss-fuzz.com/testcase-detail/5458896606855168. Limit iteration over coverage in MarkLigPosFormat1 subsetting to the number of glyphs in the liga array.
2023-09-28 14:22:51 -06:00
Qunxin Liu 9ceb800ac2 fuzzer fix https://oss-fuzz.com/testcase-detail/5842152921628672
Access TupleVariationData through blob, because we don't sanitize
var_data
2023-09-28 12:51:44 -06:00
Behdad Esfahbod 7cb7a7999b [map] Fix undefined integer-overflow
Fixes https://oss-fuzz.com/testcase-detail/5814850435284992
2023-09-28 09:24:43 -06:00
Qunxin Liu f9b04b2145 [instancer] match fonttools'r order when calculating chars
Also fix a bug, make sure map set is happening before std::move
2023-09-27 12:52:59 -07:00
Qunxin Liu f39e9bf1ed [instancer] instantiate GPOS
Just need to update var_idxes and deltas
2023-09-27 11:22:53 -07:00
Qunxin Liu 5c6795e270 [instancer] make GPOS depend on GDEF when partial instancing
GPOS needs to wait for GDEF remapping layout var idxes
2023-09-27 11:05:53 -07:00
Qunxin Liu c8594baa47 [instancer] instantiate GDEF varStore
And update layout var idxes accordingly
2023-09-27 10:58:39 -07:00
Qunxin Liu 77f24d822e [instancer] remap layout var_idxes code update
make hb_collect_variation_indices_context_t only collect layout
variation indices.
2023-09-27 10:46:45 -07:00
Qunxin Liu c8c97864e8 [instancer] simplify item_variations_t API calls
merge create,instantiate and as_item_varstore into one API
2023-09-25 10:41:52 -06:00
inobelar 69da5aae02 Added minor fixes to build without errors with gcc 4.9.2 2023-09-23 11:54:01 -06:00
Duncan Overbruck b8121ccbb6 [meson] keep asserts in test programs 2023-09-21 10:04:46 -06:00