Commit Graph
244 Commits
Author SHA1 Message Date
Behdad Esfahbod 4877405211 [GDEF] Sprinkle some hb_barrier()s 2024-09-22 13:01:14 -06:00
Behdad Esfahbod 0dace9f341 [PairPos] Forgo an optimization for the sake of compatibility
Fixes https://github.com/harfbuzz/harfbuzz/issues/4797
2024-09-21 12:38:16 -06:00
Behdad Esfahbod ba1f194a1d [gsubgpos] Reduce stack use in recursion 2024-05-02 16:37:51 -05:00
Qunxin Liu c04d0a295f [subset] generate colrv1 varsotre inner_maps in the plan
Also merge remap_variation_indices APIs used by GDEF and BASE into 1
2024-05-02 12:13:11 -05:00
Garret Rieger 992953fd3e [subset] updated comment. 2024-03-28 23:12:21 +00:00
Garret Rieger 96f0038e39 [subset] cast. 2024-03-28 23:11:16 +00:00
Garret Rieger 6e87481731 [subset] add virtual links to keep the gdef varstore last. 2024-03-28 23:00:54 +00:00
Garret Rieger 7145607149 [subset] place the gdef var store at the end of the GDEF table.
It appears that some font processors assume it is the last sub table.
2024-03-28 23:00:54 +00:00
Behdad Esfahbod 1cb47eff8f Rename VariationStore to ItemVariationStore 2024-02-06 14:52:03 -07:00
Garret Rieger ef1f5c4e0c [subset] Re-use common Coverage subsetting function in PairPosFormat2.
Was using an identical but less efficient version. Fixes fuzzer test case: https://oss-fuzz.com/testcase-detail/6151390002806784
2024-01-08 15:34:45 -07:00
Qunxin Liu 2d001a0adc [subset] OTS doesn't allow ligature attachment offset to be 0 2023-11-08 14:10:06 -07:00
Behdad Esfahbod d10cc79a6c Move a couple of barriers 2023-11-06 10:41:46 -07:00
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
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 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
Behdad Esfahbod 9fc45f70ad [ReverseChainSingleSubst] Minor optimization 2023-10-23 13:08:29 -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
Behdad Esfahbod fc563bb437 Merge pull request #4421 from googlefonts/GDEF_GPOS
[instancer] support GDEF/GPOS tables
2023-10-05 11:07:17 -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 f39e9bf1ed [instancer] instantiate GPOS
Just need to update var_idxes and deltas
2023-09-27 11:22: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
Bruce Mitchener f380a32825 Fix some typos. 2023-08-25 07:51:05 -06:00
Behdad Esfahbod 483d4a8741 Fix bot 2023-08-06 14:40:45 -06:00
Behdad Esfahbod 7989702aba Audit and fix up serialize_subset uses
Fixes https://github.com/harfbuzz/harfbuzz/issues/4362
2023-08-06 14:17:50 -06:00
Behdad Esfahbod dcd3afcabf [skippy-iter] Remove unused num_items 2023-08-01 20:09:34 -06:00
Behdad Esfahbod 9cdc043c16 [Cursive] Only sanitize what we use 2023-07-31 18:53:29 -06:00
Behdad Esfahbod 44026aa8a9 [Cursive] Minor, adjust unsafe-to-concat if prev didn't sanitize 2023-07-31 16:47:06 -06:00
Behdad Esfahbod b382e616cc [GPOS] Sanitize Cursive positioning anchors lazily
Speeds up Duployan-Regular.otf load time by 30%.
Doesn't seem to slow down shaping in a measurable way.
2023-07-31 16:31:59 -06:00
Behdad Esfahbod 62e6f7835c [Cursive] round 2023-07-25 08:32:21 -06:00
Behdad Esfahbod 60db142784 [layout] Remove unused "max-size" cruft 2023-07-24 20:49:32 -06:00
Behdad Esfahbod c91899be14 [gdef] Use set-digest for mark-filterint-sets
Speeds up Noto Duployan-Regular.otf by 45% percent!
2023-07-21 11:43:47 -06:00
Behdad Esfahbod 837885f0fa Revert "[sanitize/Coverage] Keep a map of sane coverages"
This reverts commit a689114898cc3e8f1c6ba7cc49cd6c3639d91250.
2023-07-20 12:59:57 -06:00
Behdad Esfahbod 0ab906715e [sanitize/Coverage] Keep a map of sane coverages
Fonts like Gulzar reuse the same coverage over a thousand times
sometimes.

However, this doesn't speed up sanitize unfortunately. Looks
like calling Coverage::sanitize() is already very fast. We're
just doing A LOT of it.

The map slowed it down in fact. A set was even slower.

Going to revert.
2023-07-20 12:59:46 -06:00
Behdad Esfahbod aa381ae963 [ReverseChain] Remove SIZE_MAX
Oops. Can't set it since the struct has offsets.
2023-07-18 10:42:13 -06:00
Behdad Esfahbod e583c9e904 [ReverseChain] Add max-size 2023-07-18 10:34:26 -06:00
Behdad Esfahbod 4973053109 Config 2023-07-16 13:09:49 -06:00
Behdad Esfahbod 645fabd101 [gsubgpos] Vastly speed up ChainRuleSet / RuleSet matching
Match the first component in a fast loop.

Idea replicated from LigatureSet.

Speeds up Gulzar shaping by 22%!
37% in NotoNastaliqUrdu!
2023-07-16 11:39:46 -06:00
Behdad Esfahbod 77080f86f8 . 2023-07-16 11:26:32 -06:00