Garret Rieger
ea1ee0d4b6
[instance] drop and don't collect lookups from feature variations when fully instancing.
...
This previously incorrectly collected lookups that could be reached via feature variations that are dropped and not activated by the current instance position.
2023-01-14 18:04:24 -07:00
Behdad Esfahbod
c52810529e
[subset-plan] Move construction to constructor
2023-01-12 12:53:46 -07:00
Behdad Esfahbod
1426f1c8ea
[subset-plan] Simplify name_table_overrides allocation
2023-01-11 13:23:34 -07:00
Behdad Esfahbod
5cab4a55d2
[subset-input] Simplify axes_location allocation
2023-01-11 13:21:57 -07:00
Behdad Esfahbod
4e7c803969
[subset-plan] Simplify name_table_overrides allocation
2023-01-11 12:38:26 -07:00
Behdad Esfahbod
65d3db375c
[subset-plan] Simplify user_axes_location allocation
2023-01-11 12:36:54 -07:00
Behdad Esfahbod
60418fcb95
[subset-plan] Simplify axes_index_map allocation
2023-01-11 12:33:25 -07:00
Behdad Esfahbod
8265277c2e
[subset-plan] Simplify axes_location allocation
2023-01-11 12:32:04 -07:00
Behdad Esfahbod
d54902c659
[subset-plan] Simplify axes_old_index_tag_map allocation
2023-01-11 12:29:25 -07:00
Behdad Esfahbod
a34a204bf7
[subset-plan] Simplify unicodes allocation
2023-01-11 12:27:19 -07:00
Behdad Esfahbod
75b33cb04b
[subset-plan] Simplify hmtx_map / vmtx_map allocation
2023-01-11 12:24:35 -07:00
Behdad Esfahbod
33ce3a0d44
[subset] Minor adjust a couple types
2023-01-11 12:21:26 -07:00
Behdad Esfahbod
b2007abff7
[subset-plan] Simplify glyph_map_gsub allocation
2023-01-11 11:27:22 -07:00
Behdad Esfahbod
bd4b040e7f
[shape-plan] Simplify glyphs_requested allocation
2023-01-11 11:23:48 -07:00
Behdad Esfahbod
c51d33685d
[subset-plan] Simplify no_subset_tables allocation
2023-01-11 11:22:22 -07:00
Behdad Esfahbod
999be72135
[subset-plan] Simplify drop_tables allocation
2023-01-11 11:21:17 -07:00
Behdad Esfahbod
b33eb9ecfc
[subset-plan] Simplify layout_variation_idx_delta_map allocation
2023-01-11 11:20:04 -07:00
Behdad Esfahbod
9c45d98f73
[subset-plan] Simplify colr_palettes allocation
2023-01-11 11:16:18 -07:00
Behdad Esfahbod
b74a265196
[subset-plan] Simplify colrv1_layers allocation
2023-01-11 11:15:15 -07:00
Behdad Esfahbod
89905368ca
[subset-plan] Simplify sanitized_table_cache allocation
2023-01-11 11:13:49 -07:00
Behdad Esfahbod
9e24873c1e
[subset-plan] Simplify gsub/gpos_feature_substitutes_map allocation
2023-01-11 11:12:07 -07:00
Behdad Esfahbod
01208c7c02
[subset-plan] Simplify gsub/gpos_feature_record_cond_idx_map allocation
2023-01-11 11:10:28 -07:00
Behdad Esfahbod
06039db080
[subset-plan] Simplify gsub_langsys and gpos_langsys allocation
2023-01-11 11:07:31 -07:00
Behdad Esfahbod
5fc91de2c0
[shape-plan] Simplify _glyphset_colred allocation
2023-01-11 11:04:17 -07:00
Behdad Esfahbod
efafe7aa3b
[subset-plan] Simplify _glyphset_mathed allocation
2023-01-11 11:03:19 -07:00
Behdad Esfahbod
113a1700df
[subset-plan] Simplify _glyphset_gsub allocation
2023-01-11 11:01:11 -07:00
Behdad Esfahbod
4a9268f280
[subset-plan] Simplify _glyphset allocation
2023-01-11 11:00:02 -07:00
Behdad Esfahbod
1a00ab69ec
[subset-plan] Simplify gsub_lookups and gpos_lookups allocation
2023-01-11 10:56:16 -07:00
Behdad Esfahbod
1a716bad03
[subset-plan] Simplify gsub_features and gpos_features allocation
2023-01-11 10:51:48 -07:00
Behdad Esfahbod
78aa9f1e9c
[subset-plan] Simplify name_ids allocation
2023-01-11 10:47:40 -07:00
Behdad Esfahbod
cfb48f91da
[subset-plan] Simplify name_languages allocation
2023-01-11 10:45:26 -07:00
Behdad Esfahbod
e4ca0fe436
[subset-plan] Simplify layout_features allocation
2023-01-11 10:43:01 -07:00
Behdad Esfahbod
4de66eec57
[subset-plan] Simplify layout_scripts allocation
2023-01-11 10:40:54 -07:00
Behdad Esfahbod
a59116cd8f
Oops
2023-01-06 11:09:09 -07:00
Behdad Esfahbod
c632a164b9
[subset/cff] Support instancing
2023-01-06 11:01:25 -07:00
Behdad Esfahbod
c350458539
[subset-plan] Relax const return type of a few functions
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/4003
2023-01-04 13:25:03 -07:00
Matthias Clasen
4adc748b13
Move Color tables to src/OT/Color/
2023-01-01 14:57:53 -07:00
Behdad Esfahbod
aa7f5e3742
[subset] Conditionalize call to hb_font_set_variations
2022-12-04 15:33:18 -07:00
Behdad Esfahbod
2cdaedaf54
Use hb_enumerate in more places
2022-12-03 10:16:35 -07:00
Qunxin Liu
8eadb83640
[subset] Update hb_subset_input_override_name_table API
...
Override the name string for the NameRecord identified by name_id,
platform_id, encoding_id and language_ids specified by the user.
If a record with specified name_id does not exist, this API will create
a new NameRecord with provided info and insert it to the name table.
2022-12-02 18:05:53 -07:00
Behdad Esfahbod
ff419789ef
[subset-plan] Sort unicode_to_new_gid_list when needed
2022-12-02 16:43:33 -07:00
Behdad Esfahbod
1a40da4ad1
[subset-plan] Use add_array instead of add_sorted_array
...
That vector is not declared as sorted.
2022-12-02 16:13:37 -07:00
Behdad Esfahbod
32e049a315
[subset-plan] Use gid-to-unicodes multimap
...
One test fails. Need investigation.
2022-12-02 16:09:10 -07:00
Behdad Esfahbod
7d6893a803
[subset-accelerator] Cache gid-to-unicodes
2022-12-02 15:50:52 -07:00
Garret Rieger
2c0afde737
[subset] add an inprogress accelerator to plan.
...
This allows subset code to cache information into the accelerator during preprocess subset. Previously the accelerator was created at the end of subsetting.
2022-11-23 13:41:52 -07:00
Garret Rieger
463ae07e99
[subset] In the preprocess subset call always use long loca.
...
Long loca is needed so that we can store the trimmed glyph bytes to allow us to safely skip trimming in the later subset.
2022-11-23 12:52:55 -07:00
Behdad Esfahbod
e0b06bd1b1
[subset] Cache has_seac in accelerator
...
Speeds up SourceHanSans-Regular/10000 benchmark by %25.
2022-11-21 16:30:34 -07:00
Behdad Esfahbod
f6076890c5
Hide all mentions of name_table_overrides behind EXPERIMENTAL_API
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/3872
2022-11-14 16:06:39 -07:00
Behdad Esfahbod
ebc382a847
Revert "Avoid use values () in hb-hashmap if value_t has an overriden operator &"
...
This reverts commit b92e4cc009
.
2022-11-14 15:59:46 -07:00
Qunxin Liu
b92e4cc009
Avoid use values () in hb-hashmap if value_t has an overriden operator &
2022-11-14 13:19:55 -07:00