util


Log

Author Commit Date CI Message
Cosimo Lupo cc0f1f3b 2022-04-12T10:45:43 Expose --passthrough-tables option to hb-subset CLI tool
Behdad Esfahbod 56f11ec9 2022-02-18T14:08:43 [buffer] Add HB_BUFFER_FLAG_PRODUCE_UNSAFE_TO_CONCAT Fixes https://github.com/harfbuzz/harfbuzz/issues/3454
Behdad Esfahbod c0b2f50c 2022-02-18T12:29:14 [util] Rename template typenames to avoid clashing with actual types Apparently MSVC2015 can confuse them Fixes https://github.com/harfbuzz/harfbuzz/issues/3379
Behdad Esfahbod 096121ba 2022-02-10T19:27:33 [util] Implement --sub-font Internally creates a font at 2x and creates a sub-font from it...
Behdad Esfahbod 57aa8c3b 2022-02-10T19:04:52 [draw] Another try at a stable draw moveto semantic
Behdad Esfahbod 640b6ffd 2022-02-08T18:20:59 [util] Default font-funcs to 'ot' instead of 'ft'
Behdad Esfahbod 9cc9ffe3 2022-02-08T18:18:47 [util/draw] If HB_DRAW is not set, choose depending on cairo version If HB_DRAW=0, don't use it, if HB_DRAW=1, use it, if unset, choose depending on cairo version
Behdad Esfahbod 22f2c78c 2022-02-08T17:52:56 [util/draw] Explicitly chain from render_color_glyph to render_glyph This seems to be more robust. See: https://github.com/harfbuzz/harfbuzz/pull/3411#issuecomment-1033176635
Behdad Esfahbod 6a3dec35 2022-02-08T17:39:16 [util/draw] Use hb-draw in hb-view only if HB_DRAW=1
Behdad Esfahbod 18b8a1c3 2022-02-08T16:33:09 [draw] Fix conversion warnings
Behdad Esfahbod 6812f7ee 2022-02-08T16:15:37 [draw] Implement COLRv0 fonts
Behdad Esfahbod 5c558586 2022-02-07T18:54:16 [util/draw] Apply slant to non-user-fonts as well
Behdad Esfahbod 4818b7ed 2022-02-07T18:00:14 [util] Add --font-slant
Behdad Esfahbod cfc06c24 2022-02-05T13:31:05 [util/draw] Render color glyphs if cairo API available
Behdad Esfahbod 542f8269 2022-02-04T18:45:04 [util/draw/ft] Use hb-draw for font-funcs=ft as well If cairo is >= 1.17.5. This essentially breaks emoji and bitmap fonts for now.
Behdad Esfahbod 5d2df120 2022-02-03T17:18:54 [util] Use hb-draw to render alternatively to cairo-ft Is automatically enabled if cairo is recent enough, and font-funcs are not 'ft'. Uses cairo-user-font backend internally.
Behdad Esfahbod d35f3801 2022-01-29T09:08:20 [util] Change "All shapers failed." message to "Shaping failed." Since we now emit this when verification fails as well.
Behdad Esfahbod 61823838 2022-01-28T13:45:25 [buffer] Add HB_BUFFER_FLAG_VERIFY Move buffer verification code inside the library, from util/. Part of https://github.com/harfbuzz/harfbuzz/issues/3010
Behdad Esfahbod 36b15617 2021-11-19T14:10:34 Implement hb-shape --verify unsafe-to-concat flag 15 tests failing. Those look like legit places that unsafe-to-concat needs more implementation.
luz paz e2e30506 2022-01-16T07:00:53 Fix various typos Found via `codespell -q 3 -S ./perf/texts -L actualy,ba,beng,fo,gir,inout,nd,ot,pres,ro,te,teh,timne`
Behdad Esfahbod 52f5711e 2022-01-03T11:57:42 [buffer] Add hb_buffer_create_similar() Fixes https://github.com/harfbuzz/harfbuzz/issues/1555
Behdad Esfahbod d0c3515c 2022-01-03T11:26:41 [util] Copy unicode_funcs in copy_buffer_properties() Part of https://github.com/harfbuzz/harfbuzz/issues/1555
Behdad Esfahbod 34f5b855 2022-01-03T11:25:06 [util] Simplify copy_buffer_properties() Now that hb_buffer_append() overlays segment_properties we can do this. Part of https://github.com/harfbuzz/harfbuzz/issues/1555
Behdad Esfahbod 101d07ef 2022-01-03T11:24:07 [util] Move copy_buffer_properties() out of loop Now that hb_buffer_append() overlays properties, we can do this. Part of https://github.com/harfbuzz/harfbuzz/issues/1555
Behdad Esfahbod 720ab088 2021-11-25T11:49:16 [util] Add --single-par Use it in aots tests Fixes https://github.com/harfbuzz/harfbuzz/issues/3129 Related https://github.com/harfbuzz/harfbuzz/issues/3298
Behdad Esfahbod b58afe58 2021-11-25T11:34:24 [util] Undo treat as single-paragraph text provided on cmdline Reverts d92ee726ce3b2fc2c249407d977433f0badcc918 except that it does so even in batch mode. Am going to add a --single-par mode that will affect all input modes. Part of https://github.com/harfbuzz/harfbuzz/issues/3129 Fixes https://github.com/harfbuzz/harfbuzz/issues/3298
Behdad Esfahbod da500568 2021-10-26T08:02:29 [API] Add hb_buffer_[sg]et_not_found_glyph() and --not-found-glyph Instead of using gid=0 when a character is not found in the font, client can now set a custom value. This is useful for shaper-driven font fallback and to differentiate that from .notdef glyph. Fixes https://github.com/harfbuzz/harfbuzz/issues/1360
Garret Rieger d700646c 2021-09-16T11:23:09 [subset] In preperation for 3.0.0 release remove legacy subsetting api methods.
Behdad Esfahbod cd77846b 2021-09-14T08:35:19 [util] Fix leak of an hb_font_t
Behdad Esfahbod da285d51 2021-09-14T08:28:12 [util/shape-consumer] Simplify font tracking
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 fdce2941 2021-08-29T09:44:52 [util/hb-subset] Print error and suggest filing github issue if operation fails https://github.com/harfbuzz/harfbuzz/issues/3173#issuecomment-906715780
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 -=.
Behdad Esfahbod 99356ea5 2021-08-25T17:19:06 Merge pull request #3150 from harfbuzz/item-context-tests [test] Add tests for item context
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.
Khaled Hosny 430224b1 2021-08-16T15:40:47 [buffer] Handle pre/post-context in buffer_append Fixes https://github.com/harfbuzz/harfbuzz/issues/1843
Khaled Hosny 6ca0ffd4 2021-08-16T14:52:13 [util] Add --unicodes-before/after Parallel to --unicodes for --text-before/after. To be used in tests.
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