util/hb-subset.cc


Log

Author Commit Date CI Message
Khaled Hosny 838d6707 2021-09-08T15:12:52 [subset] Improve alignment of --help-all message
Behdad Esfahbod 04cf6212 2021-08-30T18:35:08 [util/hb-subset] Fix --version and --help again https://github.com/harfbuzz/harfbuzz/commit/38ad093216d8204df2dce18a112ee43964031357
Behdad Esfahbod 38ad0932 2021-08-29T09:44:07 [util/hb-subset] Don't ignore errors during face parsing Was ignoring file-not-found errors.
Garret Rieger 1e1438c4 2021-08-26T14:59:29 [subset] fix --*-file options in hb-subset. (#3176) The previous change to add -/+ versions of each set type broke all of the --*-file input options since all of the parse functions now default to replacing the set if the + variant is not being used. This fixes the issue by changing parse_file_for to pass '+' as the name to the parsing function. This triggers the append mode.
Garret Rieger 9db494f5 2021-08-26T10:51:38 [subset] Update remaining subset input sets to use inversion for all. (#3172) * [subset] Update remaining subset input sets to use inversion for all. * [subset] Update flag help for remaining sets to mention -=.
Garret Rieger 75efade7 2021-08-25T14:51:21 [subset] format --gids and --unicodes help messages better.
Garret Rieger fa4bf7cf 2021-08-25T14:31:11 [subset] use inverted sets for glyph id input. Adds --gids-=, --glyphs-=, --text-=, --unicodes-= options. Use inverted sets to represent all glyphs and/or all unicodes.
Garret Rieger 8f4f47df 2021-08-25T13:34:05 [subset] use inverted set for all unicodes. Modify the code that handles input->unicodes to be safe with possibly inverted sets. Also adds --unicodes-= and --unicodes+= flags.
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.
Behdad Esfahbod 7115af23 2021-08-19T15:55:21 [util] Fix glib deprecation warning re g_memdup()
Behdad Esfahbod ccc2a192 2021-08-12T12:44:52 [util/hb-subset] Whitespace
Behdad Esfahbod 4dfc668e 2021-08-12T12:40:21 [util/hb-subset] Move glyph name parsing inline instead of post_parse Now that we have face around we can just do it as it happens.
Behdad Esfahbod 08d43d1b 2021-08-12T11:40:56 [util/hb-subset] Move add_all_unicodes inline, instead of post_parse Now that we have the font loaded, we can do it as it happens.
Behdad Esfahbod 11b0b688 2021-08-12T11:38:28 [util/hb-subset] Pre-parse font-face so we can use it during main parsing
Behdad Esfahbod c45d2a9c 2021-08-12T11:17:26 [util] Allow setting cli summary / description
Behdad Esfahbod 1cb621d3 2021-08-12T10:58:19 [util/hb-subset] Minor move parsing
Behdad Esfahbod 4d73b3d9 2021-08-12T10:39:46 [util] Add --batch to hb-view / hb-ot-shape-closure
Behdad Esfahbod 23282c9c 2021-08-11T22:49:47 [util/hb-subset] Support ranges in --unicodes / --unicodes-file Fixes https://github.com/harfbuzz/harfbuzz/issues/3109
Behdad Esfahbod f60f005b 2021-08-11T22:36:00 [util/hb-subset] Remove wrong hb_set_destroy() in error paths
Behdad Esfahbod 49cf3602 2021-08-11T22:34:14 [util/hb-subset] Parse --gids-file, --glyphs-file, --text-file, --unicodes-file Fixes https://github.com/harfbuzz/harfbuzz/issues/2455 Fixes https://github.com/harfbuzz/harfbuzz/issues/3002
Behdad Esfahbod bf80b7ea 2021-08-11T22:07:45 [util/hb-subset] Add --glyphs for passing glyph names Part of https://github.com/harfbuzz/harfbuzz/issues/2455
Behdad Esfahbod 5b07c3c7 2021-08-11T21:14:55 [util/hb-subset] Parse --text & --unicodes
Behdad Esfahbod c98773eb 2021-08-11T20:22:03 [util/hb-subset] Move output-file validation code into post_parse
Behdad Esfahbod 58bfe407 2021-08-11T19:48:28 [util] Move hb-subset away from main-font-text
Behdad Esfahbod 97a9e4e4 2021-08-11T19:28:16 [util] Separate shape_text_options_t from text_options_t
Behdad Esfahbod e4b33d9d 2021-08-11T18:35:11 [util] Use post_parse in face_options_t
Behdad Esfahbod 9468e469 2021-08-11T16:46:04 [util] Rename main_font_text back to main_font_text_t
Behdad Esfahbod 9d8bbe3e 2021-08-11T11:53:32 [util] Make main_font_text a struct again Going to move to G_OPTION_REMAINING.
Behdad Esfahbod 5bd463f1 2021-08-10T14:26:48 [util/hb-subset] Access input directly
Behdad Esfahbod b83fd3a5 2021-08-10T02:21:05 [util] Refactor batch-processing code into batch.hh
Behdad Esfahbod d92ee726 2021-08-09T19:08:34 [util/hb-shape] Treat as single-paragraph text other than provided by a file Fixes https://github.com/harfbuzz/harfbuzz/issues/3129
Behdad Esfahbod 7d2e9164 2021-08-07T13:38:19 [util] Move text options into text_options_t Remove now empty options.cc.
Behdad Esfahbod 93bc62e9 2021-08-07T13:13:58 [util] Move output options into output-options.hh
Behdad Esfahbod af9d2495 2021-08-07T12:29:52 [util] Use inheritance for output_options_t
Behdad Esfahbod 5545eea7 2021-08-07T11:04:46 [util] Remove main_font_text_t class, use bare function
Behdad Esfahbod 58c22335 2021-08-06T23:45:59 [util] Move face/font options into face/font-options.hh
Behdad Esfahbod 798bb89c 2021-08-06T23:29:29 [util] Move shape format options into shape-format.hh
Behdad Esfahbod 167f58a2 2021-08-06T23:03:30 [util] Move subset options into subset-options.hh
Behdad Esfahbod 4e97678e 2021-08-06T22:53:44 [util] Use inheritence to embed inherent options of objects
Behdad Esfahbod e109f9a6 2021-08-05T11:05:51 [util] Collect cmdline arg options outside of constructor
Behdad Esfahbod e57dd668 2021-08-05T10:33:31 [util] Initialize struct members inline
Behdad Esfahbod 21f1054d 2021-08-04T20:23:48 [util/hb-subset] Keep face around instead of font
Behdad Esfahbod 6500f68f 2021-08-06T18:46:31 [util] Change hb-subset to use face_options_t instead of font_options_t
Behdad Esfahbod 71440dbd 2021-08-05T13:48:59 [util] Move font-size and upem to be extern variables
Behdad Esfahbod fc0339ee 2021-08-05T13:35:46 [util] Simplify shape-consumer by removing buffer arg
Behdad Esfahbod e014c6fa 2021-08-05T13:24:59 [util/main-font-text] Move eol from template arg to main() arg
Behdad Esfahbod db6fbe29 2021-08-03T10:13:17 [util/hb-subset] Use driver_t<> in outer block as well https://github.com/harfbuzz/harfbuzz/commit/a363ce573c3aa706de3aecf0515519a5d7842af2#r54282223
Behdad Esfahbod 47d47e8c 2021-08-01T22:12:08 [util/hb-shape/hb-subset] Don't terminate on first error in batch mode There's no reason to quit processing. The failure is already communicated via stdout in both cases.
Behdad Esfahbod a363ce57 2021-08-01T22:11:13 [util/hb-subset] Minor refactor of batch mode To match recent changes to hb-shape.
Khaled Hosny 10e73d18 2021-08-01T11:11:12 [test] Add batch mode to hb-subset and use it time meson test --suite=subset down from: real 0m22.822s user 0m44.561s sys 0m9.255s to: real 0m19.418s user 0m38.171s sys 0m3.587s Does not seem to help much, but it is something. Part of https://github.com/harfbuzz/harfbuzz/issues/3089
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.
Garret Rieger 668f2bd9 2021-06-09T16:33:50 [subset] Add hb_subset_or_fail () to public subset api.
Garret Rieger 1bb00cd5 2021-05-26T14:18:32 [subset] add num-iterations flag to util/hb-subset.
Khaled Hosny 97a093c5 2020-10-12T15:32:22 [hb-subset] Improve error handling a bit * Check that output-file option is actually set before trying to open it. * Print file name and errno when opening the output file fails. * Be more resilient when writing output file and use ferror() to check for errors. Fixes https://github.com/harfbuzz/harfbuzz/issues/2711
Ebrahim Byagowi 2be859d2 2020-04-20T23:48:23 minor, replace nullptr checks with implicit ones
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
Qunxin Liu 1da1b4dc 2019-06-26T13:23:24 [subset] For option "--unicodes", add support for "*" to retain all code points
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 67064294 2019-05-16T15:13:39 [subset] Add drop-tables option to hb-subset util.
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.
Garret Rieger 490d52f9 2019-01-28T17:43:42 [subset] Add retain-gids option to hb-subset executable.
Behdad Esfahbod 3f8e7a98 2018-12-12T11:32:57 [util/hb-subset] Add --layout to keep GDEF/GSUB/GPOS Will become default and option removed in the future.
Michiharu Ariza b403be8a 2018-11-16T12:29:18 Merge branch 'master' into cff-subset
Ebrahim Byagowi 11aa0468 2018-11-15T23:10:56 [subset] minor, adjust spaces
Michiharu Ariza 6186dbf1 2018-11-01T17:25:23 added hb_subset_input_set_desubroutinize API hooked up with CFF1 subroutinizer a renaming
Behdad Esfahbod 93fe0faa 2018-08-29T18:24:03 [subset] Clean up hb_subset_input_t API
Behdad Esfahbod f39166f0 2018-08-29T18:09:55 [subset] Remove unused hb_subset_profile_t We might reintroduce it later, but for now remove, as it was unused. Some things that should have been in this object (drop_hints, etc) are already in hb_subset_input_t. So, for now, keep everything there.
Behdad Esfahbod c77ae408 2018-08-25T22:36:36 Rename hb-*private.hh to hb-*.hh Sorry for the noise, downstream custom builders. Please adjust.
Rod Sheeter 74e0c13a 2018-02-21T11:19:18 [subset] drop hint tables if so flagged. Still need to dump glyf instructions.
Rod Sheeter 0bd100e1 2018-02-21T10:34:00 [subset] add --hinting flag
Behdad Esfahbod 9046e924 2018-02-13T22:07:12 [subset] Rename constructor to hb_subset_input_create_or_fail() To signify that unlike rest of library, returns nullptr on failure.
Behdad Esfahbod d5b33f2f 2018-02-13T13:50:50 [subset] hb_subset_input_t changes
Behdad Esfahbod 70b06cc6 2018-02-10T16:13:06 More fixes
Behdad Esfahbod 4011d885 2018-02-10T14:09:06 [util] Remove use of ssize_t which was failing on MSVC
Rod Sheeter 8431c38c 2018-02-08T19:20:58 remove output noise
Behdad Esfahbod 194140d3 2018-02-08T16:27:57 [util] Minor
Behdad Esfahbod af02812f 2018-02-07T13:07:46 [subset] Change hb_subset API to remove hb_subset_face_t
Rod Sheeter 6c52d94f 2018-02-06T15:31:14 capture the set of codepoints passed by --unicodes
Garret Rieger 7481f0ce 2018-02-05T16:05:12 Add codepoints to subset input.
Ebrahim Byagowi 70e13ade 2018-02-06T13:20:38 [subset] Fix Windows issue on endlines (#756)
Garret Rieger 2ea22893 2018-02-05T15:10:01 ssize_t -> size_t
Garret Rieger c25898eb 2018-02-05T14:35:32 Switch to fopen() instead of open() in subset test. open wasn't compiling on windows.
Garret Rieger e428f7b1 2018-02-05T10:24:16 Wrap unistd.h include in ifdef.
Behdad Esfahbod eac20e45 2018-02-04T20:08:50 [subset] Minor
Rod Sheeter edcd3b80 2018-02-04T12:31:24 Actually call hb_subset
Garret Rieger 5bc0cda1 2018-02-02T17:49:14 Add missing unistd header to hb-subset.
Garret Rieger 058b1260 2018-02-01T18:22:14 Re-write hb-subset utility to use main-font-text driver.
Garret Rieger ede84ffa 2018-02-01T17:17:36 Whitespace
Rod Sheeter e9d154ac 2018-01-30T19:27:11 tweak test failure output. write to a temp file not stdout. test still fails because expected is not just an identical copy of input
Rod Sheeter 9ccb8366 2018-01-17T22:09:07 Start to sketch APIs for subsetting