src/hb-subset-input.cc


Log

Author Commit Date CI Message
Qunxin Liu a975ec48 2023-02-14T13:26:59 [instancer] apply cvar deltas
Khaled Hosny 8bdaeddf 2023-02-11T23:44:58 7.0.0
Khaled Hosny 0ea8bbd9 2023-02-11T20:01:06 [doc] Use XSince for REPLACEME/EXPERIMENTAL To hide them from gtk-doc so that we can finally enable gtkdoc-check.
Garret Rieger 2b6d74b4 2023-01-31T17:37:37 [subset] for keep everything, don't drop any tables.
Behdad Esfahbod 26d69e05 2023-01-12T12:46:44 [subset-input] Move constructor to .cc file
Behdad Esfahbod a916ad9e 2023-01-12T12:44:16 [subset-input] Move initialization to constructor
Behdad Esfahbod 875f9f6f 2023-01-12T12:37:48 [subset-input] Use shared_ptr for sets
Behdad Esfahbod ef005bc8 2023-01-12T12:09:14 [subset-input] Fix destruction Ouch! Object was already destroyed at that point before.
Behdad Esfahbod e78a68bf 2023-01-11T15:34:11 [subset-input] Don't RETAIN_GIDs in keep-everything
Behdad Esfahbod 1426f1c8 2023-01-11T13:23:34 [subset-plan] Simplify name_table_overrides allocation
Behdad Esfahbod 5cab4a55 2023-01-11T13:21:57 [subset-input] Simplify axes_location allocation
Khaled Hosny 02948263 2023-01-06T22:53:19 [subset] Document that CFF2 instancing is now supported
Behdad Esfahbod 4a5bd7a9 2023-01-01T16:53:28 [subset] Add hb_subset_input_keep_everything() Fixes https://github.com/harfbuzz/harfbuzz/issues/3998 New API: + hb_subset_input_keep_everything()
Behdad Esfahbod 52110f13 2023-01-01T16:22:02 [subset-input] Refactor copy-pasta code
Garret Rieger d77fca99 2022-12-21T21:18:20 [subset] when subsetting preprocessor fails, reference the returned face. The caller of the method is expected to destroy the returned result.
Khaled Hosny 947e01a7 2022-12-18T23:40:01 [subset] Suppress gtk-doc warning
Khaled Hosny afcae83a 2022-12-16T23:14:57 6.0.0
Garret Rieger 64cbe8b9 2022-12-12T20:41:40 [subset] Also note that only full instancing works.
Garret Rieger 0da59f86 2022-12-12T20:26:11 [subset] note that CFF/CFF2 instancing is not yet supported.
Behdad Esfahbod 7f73b57b 2022-12-10T17:35:52 [subset] Graduate L1 instancing API from experimental Fixes https://github.com/harfbuzz/harfbuzz/issues/3926
Khaled Hosny 0f4e38cd 2022-12-10T16:39:26 [subset] Small doc fixes
Garret Rieger e66d0212 2022-12-08T22:56:07 [subset] replace subset-processing.md reference with link to it on github.
Garret Rieger 27201ed3 2022-12-08T22:48:27 [subset] fix up hb_subset_preprocess api comment.
Garret Rieger 13b03883 2022-12-07T22:53:44 [subset] link to preprocessing doc from api comment.
Garret Rieger c097abab 2022-12-07T22:50:09 [subset] set no prune unicode ranges flag in preprocessor. To avoid modifying the original unicode range values in the source font.
Garret Rieger bc87fe95 2022-12-07T21:43:14 [subset] add note about memory management with preprocessed faces.
Garret Rieger eda02c2e 2022-12-05T20:18:41 [subset] Move hb_subset_preprocess to be non-experimental.
Garret Rieger 76d5482a 2022-12-05T19:40:49 [subset] always return a valid face from hb_subset_preprocess.
Qunxin Liu 8eadb836 2022-11-10T10:33:26 [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.
Garret Rieger 51028e63 2022-11-23T22:51:16 [subset] Retain all glyphs in preprocessed face.
Garret Rieger 4c49daf7 2022-11-23T22:33:57 [subset] actually use the preprocessed face in hb-subset. Tests weren't actually using the preprocessed face due to this typo in util/hb-subset.
Garret Rieger 463ae07e 2022-11-23T18:41:23 [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.
Behdad Esfahbod f6076890 2022-11-14T16:06:39 Hide all mentions of name_table_overrides behind EXPERIMENTAL_API Fixes https://github.com/harfbuzz/harfbuzz/issues/3872
Behdad Esfahbod ebc382a8 2022-11-14T15:59:46 Revert "Avoid use values () in hb-hashmap if value_t has an overriden operator &" This reverts commit b92e4cc0091e093f6941019e1a53cc04a137017a.
Qunxin Liu b92e4cc0 2022-11-14T08:54:24 Avoid use values () in hb-hashmap if value_t has an overriden operator &
Behdad Esfahbod cd011cea 2022-11-09T11:30:44 Use hb_memcpy instead of strncpy Nul-termination is not intended.
Qunxin Liu 6314aa7d 2022-10-28T10:44:48 [subset] add an experimental API that can override name strings for specified name_id
Garret Rieger f53ebf55 2022-10-14T19:38:19 [subset] Add hb_subset_preprocess to experimental symbol list for check-symbols.
Garret Rieger fdb98ed8 2022-10-14T18:30:39 [subset] add missing HB_EXTERN.
Garret Rieger 515863e5 2022-10-13T23:42:00 [subset] Remove add accelerator flag, replace with new api method. Adds hb_subset_preprocess() which preprocesses the face and attaches accelerator data.
Qunxin Liu 0a6c16a3 2022-08-08T13:47:39 [instance] instantiate fvar table Added an old->new axes_indices mapping in the subset plan
Khaled Hosny 4a1d891c 2022-09-17T03:15:51 5.2.0
Qunxin Liu df55f840 2022-06-30T09:36:19 [instance] instantiate STAT table when axes are pinned at fixed locations restricting ranges is not supported yet.
Qunxin Liu 2a4773e4 2022-06-21T19:29:52 add option "--instance", store axes_location in subset_plan and drop all variation tables when all axes are pinned at default
Behdad Esfahbod 386e1bba 2022-07-05T12:46:05 Merge pull request #3699 from googlefonts/filter_scripts [subset] Add support for --layout-scripts
Garret Rieger 70e32a66 2022-06-30T21:00:48 [subset] Add layout_scripts to subset input.
Khaled Hosny 98e90cc6 2022-06-30T08:43:57 [docs] Reduce warnings Use markdown syntax for inline code blocks instead of %true, %false, and %NULL.
Behdad Esfahbod cc7ebb0f 2022-06-04T05:42:58 Remove remaining mention to complex shapers in the code https://github.com/harfbuzz/harfbuzz/pull/3628#issuecomment-1146248037
Behdad Esfahbod 40d7d56e 2022-06-03T05:40:18 [subset-input] Minor move
Behdad Esfahbod 40193adb 2022-06-03T05:35:19 [subset] Update default features list
Garret Rieger d700646c 2021-09-16T11:23:09 [subset] In preperation for 3.0.0 release remove legacy subsetting api methods.
Khaled Hosny 505df5ab 2021-09-07T13:46:08 2.9.1
Garret Rieger 3844e58e 2021-08-30T11:16:51 [subset] remove helper functions for accessing subset input sets.
Garret Rieger 102666da 2021-08-27T10:31:37 [subset] add test for hb_subset_input_set (...).
Garret Rieger 7194c2a2 2021-08-27T08:20:58 [subset] use anonymous union to hold the input sets instead of a map.
Garret Rieger 05204d75 2021-08-25T16:51:26 [subset] implement hb_subset_input_set (...). Switch to storing the sets keyed by enum internally.
Garret Rieger f2441a4b 2021-08-24T15:53:32 [subset] Remove retain all layout features flag. Instead use inverted sets to handle requesting all features. Modifies feature collection in subset plan to intersect the set of requested features against the features in the font. This prevents iterating a fully filled feature tag set.
Garret Rieger fb07f8f8 2021-08-23T15:33:57 During subset input creation check for set alloc failures and fail if encountered.
Khaled Hosny 80ff72f3 2021-08-18T13:09:03 [doc] Misc fixes
Khaled Hosny 9aa6f8a9 2021-08-18T09:32:04 2.9.0
Garret Rieger cb05c363 2021-08-13T15:19:20 [subset] add some basic tests for the legacy subset methods.
Garret Rieger d18aad7e 2021-08-13T15:05:48 [subset] restore old subsetting api methods. These will be left in place until the 3.0.0 release.
Garret Rieger f9d8e4a9 2021-07-29T15:25:41 [subset] switch ..._set_flags to not take a mask.
Garret Rieger 3d534b14 2021-07-29T11:52:14 [subset] convert subset input flags into bit flags. Store the flags in a bit set. Updates the public api to work with the bit set directly.
Behdad Esfahbod 4762fcb4 2021-07-26T11:48:55 Merge pull request #3067 from googlefonts/glyph_names [subset] support option --glyph-names
Khaled Hosny ec99fdb7 2021-07-26T01:35:13 [sebset] Use [s|g]et_flag for retain_all_layout_features Looks like this was missed when adding hb_subset_input_[s|g]et_flag()
Khaled Hosny acc7100a 2021-07-26T02:13:49 [docs] Improve subset documentation
Qunxin Liu 71b5509c 2021-07-20T20:05:35 [subset] support option --glyph-names
Garret Rieger 1fde80ad 2021-07-22T16:45:48 [subset] update comments referencing hb_subset_input_t parameter.
Garret Rieger 2b9cb299 2021-07-22T13:26:03 [subset] cleanup no_subset_tables on destruction.
Garret Rieger 792e2ed6 2021-07-22T12:41:48 [subset] convert no get/set prune unicode ranges to enum.
Garret Rieger 1b6c1aa6 2021-06-28T12:57:39 [subset] add hb-subset api to documentation generator. Standardize subset_input parameter to be input.
Garret Rieger 8ce96834 2021-06-23T13:55:11 [subset] add documentation for all hb-subset.h methods.
Garret Rieger 372722ce 2021-06-23T13:10:03 [subset] move notdef_outline to the subset input property enum.
Garret Rieger a6c6cda4 2021-06-09T17:46:47 [subset] Add no subset tables and passthrough unrecognized tables to the subset api. Matches fontTools options.
Garret Rieger 7d82191f 2021-06-09T16:20:55 [subset] Remove hb_subset_input_get/set_name_legacy ().
Garret Rieger 942636ae 2021-06-09T16:18:39 [subset] Remove hb_subset_input_get/set_retain_gids.
Garret Rieger 77b4a1cd 2021-06-09T14:11:17 [subset] Remove hb_subset_input_get/set_desubroutinize.
Garret Rieger 8bf5d4d4 2021-06-09T14:05:17 [subset] Remove hb_subset_input_get/set_drop_hints.
Garret Rieger 38de3491 2021-06-09T12:54:14 [subset] add implementation for get/set flag on subset input.
Garret Rieger 83727837 2021-06-09T11:09:14 [subset] add proposed enum property get/set method.
Garret Rieger b38e49dc 2021-06-09T10:57:58 [subset] add get/set user data methods to subset input.
Behdad Esfahbod 2337f0d0 2021-07-08T10:58:50 Internally use hb_malloc/.../hb_free instead of malloc/.../free Redefining those stock names as macros was conflicting with gcc 10 headers. Fixes https://github.com/harfbuzz/harfbuzz/issues/3044
Qunxin Liu eee7b459 2021-06-24T10:17:46 [subset] add option --no-prune-unicode-ranges
Qunxin Liu d07f789a 2021-06-09T15:36:40 [subset] support option "--notdef-outline"
Garret Rieger 18f61210 2021-05-27T16:01:17 Add public api methods to get/set the layout features to retain.
Qunxin Liu cb5a6b5a 2021-05-19T17:33:46 [subset] support option --layout-features
Garret Rieger 73ff04a3 2021-05-18T16:54:01 [subset] add option to have the subsetter set the mac overlaps flag on each glyph.
Garret Rieger 6fddc2bb 2021-04-01T15:34:17 [subset] subset layout tables (G*) by default.
Qunxin Liu 36a5c042 2020-01-21T13:37:28 [subset] Add "--name-languages" and "--name-legacy" options Make name table subsetting consistent with fontTools
Ebrahim Byagowi e171beeb 2020-01-24T19:51:21 Revert "[subset] Add "--name-languages" and "--name-legacy" options" Causes tests failures, please reapply when tests are fixed, thanks. This reverts commit fd85818b5b85fb0ad2db71c60e94ca0689d38bca.
Qunxin Liu fd85818b 2020-01-21T13:37:28 [subset] Add "--name-languages" and "--name-legacy" options Make name table subsetting consistent with fontTools
ckitagawa 93376a64 2020-01-15T13:11:40 Add unittests
Ebrahim Byagowi a0b4ac4d 2019-08-24T17:57:14 Turn 8 spaces to tab across the project According to the current code style of the project
Garret Rieger ff7fc6d4 2019-05-22T17:36:16 [subset] Add morx, mort, kern, and kernx to the default layout tables drop list.
Qunxin Liu 993d81b9 2019-05-14T13:55:11 [subset] Add one ttf file with fvar/STAT tables to integration test Ignore gvar/MVAR/HVAR table add support for --nameIDs=* option
Garret Rieger 0ff3618c 2019-05-17T15:30:01 [subset] Use hb_subset_input_t inside of subset_options_t so that input defaults are shared between the library and cli.
Garret Rieger 3be0ffe4 2019-05-16T11:29:15 [subset] Add drop tables to subset input.
Qunxin Liu e501ea14 2019-04-05T10:05:55 [subset] Subset name table step 3, add --nameids option to guide the selection of which name records to keep in the subset method.
Behdad Esfahbod 59f36f36 2019-03-29T10:55:12 Replace REPLACEME's left out of 2.4.0 https://github.com/harfbuzz/harfbuzz/issues/1641