util


Log

Author Commit Date CI Message
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
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
Simon Cozens c0716bb5 2020-09-18T10:31:28 Move delimiter addition into hb-buffer-serialize
Simon Cozens a0203a28 2020-09-17T16:49:59 Use hb_buffer_serialize to trace in utils
Ebrahim Byagowi 51933578 2020-08-11T23:51:59 Revert "Remove autotools build support" This reverts commit 01ac32aab2109681abc58bb2f96a4ef4a7f0c6df.
Ebrahim Byagowi 01ac32aa 2020-08-02T11:35:55 Remove autotools build support
Ebrahim Byagowi 58a5961c 2020-07-29T08:44:23 minor spacing tweak
Ebrahim Byagowi 07c43b8c 2020-07-29T08:42:52 minor spacing tweak
Ebrahim Byagowi 5a7cc7fd 2020-07-29T08:33:32 minor spacing tweak
Ebrahim Byagowi ba810ce8 2020-04-05T22:51:58 [tests] Replace space with colon in batch mode
Christoph Reiter 03bd6ead 2020-06-03T23:52:10 [meson] Only pass required dependencies to everything Instead of passing dependencies as required we used one giant shared dependency list containing all dependencies for every library/executable. While this kinda works, the specified deps are also used for generating the pkg-config files and this leads to lots of Requires.private and Libs.private entries which aren't really needed. This removes the "deps" array and replaces it with a few smaller ones and makes sure the public libraries only get passed the dependencies actually needed. Fixes #2441
Behdad Esfahbod 069c5de9 2020-05-14T18:58:53 [util/hb-view] Add --font-extents Fixes https://github.com/harfbuzz/harfbuzz/issues/2402
Qunxin Liu b2a965df 2020-04-22T15:58:41 [subset] Add support for "--gids" option cmap subsetting now retains entries associated with any glyph ids explicitly requested
David Corbett 5a0936f5 2020-04-23T19:09:00 Increase the size of the serialization buffer
Ebrahim Byagowi 2a549aad 2020-04-21T00:32:34 minor
Ebrahim Byagowi 2be859d2 2020-04-20T23:48:23 minor, replace nullptr checks with implicit ones
Ebrahim Byagowi 1dd38966 2020-03-12T13:41:10 [meson] Make it work on autotools dist
Aaron Boxer 68f98241 2019-07-22T12:12:02 meson: update to latest master
Tim-Philipp Müller 618584e9 2018-11-14T20:19:36 meson: rename incbase to incconfig Makes it clearer what it's for: config.h. See #4.
Tim-Philipp Müller 49ba211a 2018-11-12T15:36:27 meson: add options to enable/disable various features And fix build without GLib. Fixes #2.
Mathieu Duponchelle 484313ff 2018-06-05T02:15:43 meson: install
Mathieu Duponchelle 99b26789 2018-05-17T14:53:20 meson: more windows fixes
Mathieu Duponchelle 920efc0e 2018-05-17T01:28:53 Add Meson build definitions Fixes #490 http://mesonbuild.com
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
Ebrahim Byagowi ce114d6b 2019-12-31T15:53:02 minor, tweak spaces
Evgeniy Reizner b79ceac3 2019-12-15T16:50:01 Prefer UINT_MAX instead of uint overflow. Also, prefer HB_FEATURE_GLOBAL_START and HB_FEATURE_GLOBAL_END.
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
Zero King 6d53cda1 2019-07-26T15:43:51 [util] Fix memory leak
Qunxin Liu 1da1b4dc 2019-06-26T13:23:24 [subset] For option "--unicodes", add support for "*" to retain all code points
Bruce Mitchener 659eeddb 2019-06-03T22:31:50 Use C++11 override keyword.
Bruce Mitchener 5846884f 2019-06-03T15:00:25 test: Use nullptr in C++ code. (#1744)
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 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.
David Corbett 087b9a0a 2019-02-18T22:30:40 Fix or document unsupported font-feature-settings
David Corbett 45adc185 2019-02-18T22:30:40 Fix or document unsupported font-feature-settings
Garret Rieger 490d52f9 2019-01-28T17:43:42 [subset] Add retain-gids option to hb-subset executable.
Behdad Esfahbod 60022ecc 2019-01-26T14:04:51 Fix -Wcast-function-type warnings in util/ with gcc 4.8
Ebrahim Byagowi e4120085 2018-12-17T21:31:01 Remove redundant void from C++ sources (#1486)
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.
Behdad Esfahbod 9844c880 2018-12-11T17:28:04 Minor
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 43ee0e4d 2018-11-06T09:57:17 Merge branch 'master' into cff-subset
Behdad Esfahbod 9bddfde2 2018-11-06T11:03:34 [util] Fix up previous commit
Behdad Esfahbod 3ec2e4fa 2018-11-06T10:49:19 [util] Don't terminate string after a a 0 in -u Fixes https://github.com/harfbuzz/harfbuzz/issues/1361
Michiharu Ariza 481fdfdc 2018-11-02T15:28:09 Merge branch 'cff-subset' of https://github.com/harfbuzz/harfbuzz into cff-subset
Michiharu Ariza 6186dbf1 2018-11-01T17:25:23 added hb_subset_input_set_desubroutinize API hooked up with CFF1 subroutinizer a renaming
Michiharu Ariza e600e544 2018-11-01T16:13:56 Merge branch 'master' into cff-subset
Michiharu Ariza d56e338a 2018-10-31T22:30:34 CFF1 no-desubroutinize + no-hinting no-desubroutinize option is disabled for now code cleanup (esp. CFF1 width handling) bug fixes & renaming
Behdad Esfahbod edaa7682 2018-10-30T01:35:58 [util] Use fgets instead of getline such that windows passes
Behdad Esfahbod 83a61273 2018-10-30T01:24:23 [util] Minor
Ebrahim Byagowi f7a08cd4 2018-10-30T11:29:09 Fix extra semicolon issues and test that on CI (#1330)
Behdad Esfahbod 58e20f53 2018-10-30T00:50:18 [util] Add hb-shape --batch
Behdad Esfahbod 6131fb62 2018-10-30T00:38:01 [util] Don't close stdin/stdout
Khaled Hosny cf92cb7e 2018-10-19T22:21:39 Use g_strdup instead of strdup Cygwin does not seem to have strdup.
Ebrahim Byagowi eeddda3e 2018-10-18T07:38:47 [util] Better file-not-found error from hb-shape / hb-view fixes #1266
Behdad Esfahbod 1e8fdd28 2018-10-10T16:32:35 Remove HAVE_OT We never tested compiling without it. Just kill it. We always build our own shaper.
Behdad Esfahbod e42cd58c 2018-10-07T20:46:11 Rename invisible_codepoint to invisible_glyph in API Deleted recently added API: hb_buffer_set_invisible_codepoint() hb_buffer_get_invisible_codepoint() hb-shape / hb-view --invisible-codepoint New API: hb_buffer_set_invisible_glyph() hb_buffer_get_invisible_glyph() hb-shape / hb-view --invisible-glyph Fixes https://github.com/harfbuzz/harfbuzz/issues/1216
Behdad Esfahbod 71b65eb2 2018-10-07T18:41:52 Add API for setting invisible-codepoint Fixes https://github.com/harfbuzz/harfbuzz/issues/1216 New API: hb_buffer_set_invisible_codepoint() hb_buffer_get_invisible_codepoint() hb-shape / hb-view --invisible-codepoint
Michiharu Ariza 55942ad5 2018-10-06T14:49:44 Merge branch 'master' into cff-subset
Behdad Esfahbod 310bdac4 2018-10-04T16:31:14 Fix a warning
Ebrahim Byagowi 6353cc1f 2018-10-02T21:39:19 [circleci] Fix some of warnings from clang-everything bot (#1211) * -Wshift-sign-overflow * -Wmissing-prototypes
Ebrahim Byagowi 0fa1edbd 2018-10-01T09:40:29 [circleci] Couple of fixes (#1200) * Raise error on warnings on -everything * Enable fontconfig to two bots * Fix msan bot now that all of its real complain are gone
Behdad Esfahbod b5285b34 2018-09-30T12:23:01 [util] Remove unneeded virtual clang warning: ../../util/options.hh:72:13: warning: destination for this 'memset' call is a pointer to dynamic class 'option_parser_t'; vtable pointer will be overwritten [-Wdynamic-class-memaccess] memset (this, 0, sizeof (*this)); ~~~~~~ ^ ../../util/options.hh:72:13: note: explicitly cast the pointer to silence this warning memset (this, 0, sizeof (*this)); ^ (void*)
Behdad Esfahbod 89ed040b 2018-09-30T06:06:26 [util] Fix more non-virtual-destructor warnings
Behdad Esfahbod 2382dd07 2018-09-30T05:54:47 Minor
Behdad Esfahbod 9caa432d 2018-09-30T05:49:08 [util] Use HB_FALLTHROUGH Sure, gcc knows to warn about this as well: ../../util/options.cc:175:17: warning: this statement may fall through [-Wimplicit-fallthrough=] case 1: m.r = m.t; ~~~~^~~~~ ../../util/options.cc:176:5: note: here case 2: m.b = m.t; ^~~~ But HOLY SMOKES, look at clang -Weverything bot message: options.cc:176:5: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] case 2: m.b = m.t; ^ options.cc:176:5: note: insert 'HB_FALLTHROUGH;' to silence this warning case 2: m.b = m.t; ^ HB_FALLTHROUGH; Right, it's telling me to insert "HB_FALLTHROUGH;" there!!!!!!!!!
Behdad Esfahbod 2e728a7d 2018-09-30T05:47:36 [util] Mark var static From clang -Weverything bot: options.cc:39:3: warning: no previous extern declaration for non-static variable 'supported_font_funcs' [-Wmissing-variable-declarations]
Behdad Esfahbod e910a1ae 2018-09-30T05:46:20 [util] Add empty virtual destructor to option_group_t From clang -Weverything bot: ./options.hh:57:8: warning: 'option_group_t' has virtual functions but non-virtual destructor [-Wnon-virtual-dtor] struct option_group_t ^
Behdad Esfahbod 04caf116 2018-09-26T12:13:47 [hb-view] Change subpixel bits from 8 to 6 To match FreeType units, such that FreeType gets correct size from us. This matters more now that we allow setting --ft-load-flags.
Behdad Esfahbod 606bf574 2018-09-16T19:33:48 Revert forcing use of single-parameter static_assert() Some clang versions define static_assert as a macro apparently, so we cannot redefine it... This reverts commit 94bfea0ce6a7b4d5641c198d50751748a353df11. This reverts commit 4e62627831e7457ed60ff87712570065b14b200a.
Behdad Esfahbod 94bfea0c 2018-09-16T19:12:19 Fix build, another try
Behdad Esfahbod f90bab85 2018-09-11T14:21:15 [util] Add --ft-load-flags Useful for performance testing. Not hooked to cairo yet. Just changes shaping, not rasterization.
Behdad Esfahbod 93f75962 2018-09-11T14:11:10 [util] Add -n shorthand for --num-iterations Meh.
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.
Ebrahim Byagowi 159ddb87 2018-06-24T23:09:16 Treat - just as /dev/stdin and remove one extra file reader (#1065)
Ebrahim Byagowi d0c2889d 2018-06-18T19:59:33 Revert file blob sanitization and index checking (#1062) As https://github.com/harfbuzz/harfbuzz/pull/1059#issuecomment-397912812 we like to still work with blobs that harfbuzz itself can't handle directly that are failing sanitization currently apparently.
Ebrahim Byagowi c53697d3 2018-06-17T17:04:55 Verbose fail when something is wrong with hb-shape/hb-view input font file (#1059) This checks if the blob isn't empty and uses `hb_face_count` to see if the font file passes the simple font file sanitization so can detect if the input is actually a font and checks also whether input font-index is out of range.
Ebrahim Byagowi aa0c5df4 2018-06-17T16:49:34 Fix reading fonts from stdin (#1060) We were passing the font path directly to freetype so rendering was broken when we are getting the font from stdin. This fixes it by using FT_New_Memory_Face instead. This fixes: * build/util/hb-view /dev/stdin text < font.ttf * build/util/hb-view - text < font.ttf * cat font.ttf | build/util/hb-view - text but doesn't work on * cat font.ttf | build/util/hb-view /dev/stdin text which I will try to fix separately.
Ebrahim Byagowi eaf64945 2018-04-23T18:39:40 Resolve clang's conditional-uninitialize warnings
Ebrahim Byagowi ce17340b 2018-04-20T10:29:06 Add hb_blob_create_from_file, a new API (#926)
Khaled Hosny 6fdeeb2a 2018-04-19T23:41:37 [util] Check all specified shapers are known (#993) A bit brute force and requires all shapers to be known, not just one. Fixes https://github.com/harfbuzz/harfbuzz/issues/956
David Corbett 82697919 2018-03-25T20:50:41 Allow trailing non-numeric chars in --unicodes
Behdad Esfahbod 127096e4 2018-03-15T13:23:27 [util] Remove line buffering Something weird seems to be going on. Just kill it. Fixes https://github.com/harfbuzz/harfbuzz/issues/888
rsheeter 4a1d51ef 2018-02-26T20:23:41 Merge pull request #818 from googlefonts/drophints [subset] Drop hints
Garret Rieger 0c0fe2ff 2018-02-26T17:47:10 [subset] Move util/generated-unicode-ranges.py to src/gen-unicode-ranges.py
Garret Rieger ddc4f2b9 2018-02-26T15:59:32 [subset] Add python util that was used to generated hb-ot-os2-unicode-ranges.hh
Ebrahim Byagowi bb82f013 2018-02-25T12:30:33 [aat] trak sanitization
Rod Sheeter d78393b5 2018-02-23T17:53:26 Merge branch 'master' of https://github.com/harfbuzz/harfbuzz into drophints
Ebrahim Byagowi 4f6f7c3b 2018-02-23T02:54:12 [util] Implement ppem/ptem on hb-{shape,view} (#811)
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