util


Log

Author Commit Date CI Message
Behdad Esfahbod 829b0f33 2021-08-20T01:28:15 Merge pull request #3154 from harfbuzz/set-invert Resurrect hb_set_invert()
Behdad Esfahbod 7115af23 2021-08-19T15:55:21 [util] Fix glib deprecation warning re g_memdup()
Simon Cozens e29f5635 2021-08-18T08:51:41 Replace "langstr" with more helpful help.
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 4f3b7b70 2021-08-12T11:05:31 [util] Remove unused usage
Behdad Esfahbod 1cb621d3 2021-08-12T10:58:19 [util/hb-subset] Minor move parsing
Behdad Esfahbod 3f94177e 2021-08-12T10:43:31 [util] Use g_set_error() in one more place
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 4ec727e5 2021-08-11T20:46:16 [util] Minor edit of failure messages
Behdad Esfahbod b83f25c7 2021-08-11T20:42:20 [util/hb-subset] Revamp option groups
Behdad Esfahbod 9a6055ca 2021-08-11T20:30:25 [util/hb-ot-shape-closure] Remove unnecessary include
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 ba418cfc 2021-08-11T19:29:07 [util] Use automatic casts
Behdad Esfahbod 97a9e4e4 2021-08-11T19:28:16 [util] Separate shape_text_options_t from text_options_t
Behdad Esfahbod 6ba7ddaf 2021-08-11T19:06:57 [util] Move text-file opening to post_parse
Behdad Esfahbod 23298bc8 2021-08-11T18:58:25 [util] Remove unnecessary check
Behdad Esfahbod fd0778aa 2021-08-11T18:54:46 [util] Use post_parse in output_options_t
Behdad Esfahbod 24a9d8c7 2021-08-11T18:47:06 [util] Use post_parse in font_options_t
Behdad Esfahbod e4b33d9d 2021-08-11T18:35:11 [util] Use post_parse in face_options_t
Behdad Esfahbod c0ea4e2d 2021-08-11T18:30:08 [util] Use post_parse to validate
Behdad Esfahbod 9468e469 2021-08-11T16:46:04 [util] Rename main_font_text back to main_font_text_t
Behdad Esfahbod 7e4fcf1b 2021-08-11T12:12:49 [util] Rename add_main_options
Behdad Esfahbod 62fb1021 2021-08-11T12:03:07 [util] Move add_main_options() invocation
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 6905f6fa 2021-08-10T14:24:24 [util/hb-subset] Use templated function to parse flags directly
Behdad Esfahbod 3e3e1801 2021-08-10T13:59:46 [util] Small tweaks in --help output
Behdad Esfahbod f3acb977 2021-08-10T11:05:40 [test/shaping;util] Use ';' instead of ':' to separate test fields Accept that in --batch mode. Also in batch mode don't send the 0th arg. Related discussion: https://github.com/harfbuzz/harfbuzz/pull/3102
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 9db0fd48 2021-08-07T12:22:17 [util] Don't show --output-format if no supported formats provided
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 6edd50ae 2021-08-06T23:36:45 [util] Move option_parser_t code into options.hh
Behdad Esfahbod 798bb89c 2021-08-06T23:29:29 [util] Move shape format options into shape-format.hh
Behdad Esfahbod c3599fde 2021-08-06T23:24:28 [util] Move shape options into shape-options.hh
Behdad Esfahbod cfb2d6ad 2021-08-06T23:14:30 [util] Move view options into view-options.hh
Behdad Esfahbod 167f58a2 2021-08-06T23:03:30 [util] Move subset options into subset-options.hh
Behdad Esfahbod 370e961f 2021-08-06T22:59:50 [util/hb-subset] Use hb-subset.h public API instead of poking inside Oops.
Behdad Esfahbod 4e97678e 2021-08-06T22:53:44 [util] Use inheritence to embed inherent options of objects
Behdad Esfahbod 06d66180 2021-08-06T19:20:47 [util] Fix compiler error ../util/options.cc:588:3: error: narrowing conversion of ‘font_size_flags’ from ‘unsigned int’ to ‘gint {aka int}’ inside { } [-Werror=narrowing]
Behdad Esfahbod c5337c43 2021-08-06T19:19:50 [util] Fold helper-cairo.cc into helper-cairo.hh
Behdad Esfahbod c329ce10 2021-08-06T19:13:21 [util] Also hide ppem settings in hb-ot-shape-closure Leaving ptem, as that can in theory change shape closure if we apply it to optical-size axis (we currently don't).
Behdad Esfahbod c40e0079 2021-08-06T19:04:27 [util] Fold helper-cairo-ansi.cc into helper-cairo-ansi.hh
Behdad Esfahbod 4fe43ccb 2021-08-06T19:00:45 [util] Fold ansi-print.cc into ansi-print.hh
Behdad Esfahbod b1db0e4a 2021-08-06T18:55:40 [util] Fold view-cairo.cc into view-cairo.hh
Behdad Esfahbod 6500f68f 2021-08-06T18:46:31 [util] Change hb-subset to use face_options_t instead of font_options_t
Behdad Esfahbod 869e20e0 2021-08-06T18:09:31 [util] separate face options from font options
Behdad Esfahbod b3a2f2bf 2021-08-05T14:03:48 [util/main-font-text] Simplify
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 463411a1 2021-08-05T11:44:35 [util] Remove unused option_group_t
Behdad Esfahbod 8588173e 2021-08-05T11:43:25 [util] Rework post_parse() handling
Behdad Esfahbod 3362b48f 2021-08-05T11:30:39 [util] Templatize add_group logic
Behdad Esfahbod fe90fbeb 2021-08-05T11:22:20 [util] Remove unused pre_parse callback logic
Behdad Esfahbod 09e4d7dd 2021-08-05T11:21:20 [util] Simplify output_options_t
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 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
Behdad Esfahbod ed99c806 2021-08-01T08:14:59 [util/hb-shape] Refactor driver type duplication
Behdad Esfahbod 05cf8128 2021-08-01T07:59:25 [util/hb-shape] Fix use of EOF as end-of-line EOF is -1, which was being treated as a valid char (255). Use int instead.
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 d7541f7b 2021-07-29T00:09:24 [util/hb-shape] Free cached resources on termination
Behdad Esfahbod ad03f34d 2021-07-28T19:05:12 [util/hb-shape] Cache blob/face in batch mode
Behdad Esfahbod 5dae8297 2021-07-28T11:35:40 [util] Minor followup to https://github.com/harfbuzz/harfbuzz/pull/3083
Khaled Hosny 50379fbb 2021-07-28T16:13:49 [util] Don’t split text at new lines in batch mode In batch mode (which is used for testing) we are probably not interested in splitting text into lines as we could have split the string into different tests. This fixes a bunch of AOTS tests that use newlines as input.
Khaled Hosny 92b85749 2021-07-28T15:56:53 [util] Strip quotes when parsing features When running in batch mode, the quotes are not stripped by the shell and end up in the feature string. This breaks one of the AOTS tests. Alternatively, we can remove the quotes from the test files, not sure which is less hacky, though!
Qunxin Liu 71b5509c 2021-07-20T20:05:35 [subset] support option --glyph-names
Garret Rieger 668f2bd9 2021-06-09T16:33:50 [subset] Add hb_subset_or_fail () to public subset api.
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"
Behdad Esfahbod bdfed8f1 2021-06-14T15:46:04 [blob] Add failing versions of create API Fixes https://github.com/harfbuzz/harfbuzz/issues/2567 New API: +hb_blob_create_or_fail() +hb_blob_create_from_file_or_fail() Use these in util/ to distinguish empty file from not-found file. Only err on the latter.
Behdad Esfahbod c61ce962 2021-06-10T17:33:29 [buffer] In hb_buffer_get_positions(), return NULL if inside message callback As discussed in https://github.com/harfbuzz/harfbuzz/issues/2468#issuecomment-645666066 Part of fixing https://github.com/harfbuzz/harfbuzz/issues/2468
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 1bb00cd5 2021-05-26T14:18:32 [subset] add num-iterations flag to util/hb-subset.
Behdad Esfahbod 42bf8e3d 2021-04-26T12:31:44 [util] Disable chafa's truecolor mode See https://github.com/harfbuzz/harfbuzz/pull/2959#issuecomment-827056111
Hans Petter Jansson 8298c2f9 2021-04-23T18:37:58 [hb-view] Use Chafa for terminal graphics if available This produces high-quality terminal graphics using symbols or sixels according to the detected terminal capabilities. Fixes #2430.
Behdad Esfahbod b3159ed8 2021-03-30T20:52:56 [util] Silence compiler warning
Khaled Hosny c30349d5 2021-03-21T20:12:59 [hb-view] Support kitty inline images protocol https://github.com/harfbuzz/harfbuzz/issues/2758
Khaled Hosny f7d5889b 2021-03-21T18:16:33 [hb-view] Support iTerm2 inline images protocol https://github.com/harfbuzz/harfbuzz/issues/2758