util


Log

Author Commit Date CI Message
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
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
Behdad Esfahbod 570d5237 2018-02-10T13:24:22 [subset] Merge remote-tracking branch 'googlefonts/master'
Behdad Esfahbod d0f3e7f5 2018-02-10T12:45:28 [util] Use setlinebuf() if present To work around mysterious bug on OS X. Fixes https://github.com/harfbuzz/harfbuzz/issues/727
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 fc04f11c 2018-02-05T11:12:33 Rename HB_SUBSET_sources -> HB_SUBSET_CLI_sources to match what cmake is looking for.
Garret Rieger e428f7b1 2018-02-05T10:24:16 Wrap unistd.h include in ifdef.
Behdad Esfahbod ae39fc81 2018-02-04T20:18:52 [subset] Build hb-subset into separate libharfbuzz-subset.so
Behdad Esfahbod eac20e45 2018-02-04T20:08:50 [subset] Minor
Rod Sheeter edcd3b80 2018-02-04T12:31:24 Actually call hb_subset
Garret Rieger f83a43b5 2018-02-02T17:50:45 Add CMake configuration for all of the new subsetting code.
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
Behdad Esfahbod 4c4a9fc8 2018-01-17T09:47:50 Typo Fixes https://github.com/harfbuzz/harfbuzz/issues/711
Behdad Esfahbod 7c32e01d 2018-01-11T10:47:31 Minor
Behdad Esfahbod 746a37d5 2018-01-10T16:47:47 [util] Replace setlinebuf
Behdad Esfahbod ff2083c5 2018-01-10T13:54:36 [util] Set stdio files to line buffering So we can stream lines to hb-shape and read output.
Behdad Esfahbod 3b1e97f3 2018-01-10T03:35:20 Add HB_BUFFER_FLAG_REMOVE_DEFAULT_IGNORABLES New API: HB_BUFFER_FLAG_REMOVE_DEFAULT_IGNORABLES hb-shape / hb-view --remove-default-ignorables One more text-rendering-tests test passing. Eleven failing.
Behdad Esfahbod 3f29ea91 2018-01-10T02:48:04 [util] Add hb-shape --ned For not displaying extra data: no clusters, no advance. Just data pertaining to where glyphs end up on the screen.
Behdad Esfahbod 71fd6325 2018-01-10T02:20:14 Add option to buffer serialization to not output glyph advances When advances are not printed, glyph offsets reflect absolute glyph positions. New API: HB_BUFFER_SERIALIZE_FLAG_NO_ADVANCES hb-shape --no-advances
Behdad Esfahbod 7b837e20 2018-01-03T12:46:29 [util] Add TODO item
Olivier Blin 0fd89dc6 2017-12-04T18:58:41 [hb-ft] Fix build when Multiple Master font support is disabled in freetype FT_Set_Var_Blend_Coordinates() is not available when "Multiple Master font interface" is disabled in freetype's modules.cfg
Behdad Esfahbod bb7cc4ea 2017-11-20T19:39:47 Minor
Behdad Esfahbod 17f40b7c 2017-10-27T09:22:30 Include hb-private.hh more consistently Part of fixing https://github.com/behdad/harfbuzz/issues/585
Behdad Esfahbod dbdbfe3d 2017-10-15T12:11:08 Use nullptr instead of NULL
Behdad Esfahbod c3448e8d 2017-10-15T12:02:00 Use static_assert instead of custom ASSERT_STATIC
Behdad Esfahbod dad431e7 2017-10-15T10:55:32 [util] Include hb-private.hh Simplifies compatibility issues by centralizing all boilerplate code in hb-private.hh.
Behdad Esfahbod 9355218f 2017-09-09T11:21:07 [util] Add a few shorthand forms for commandline options -o, -O, -u, -v, -V
Behdad Esfahbod d03f11f2 2017-09-04T20:14:13 Fix buffer_diff for empty buffers If buffers are empty, content type should be ignored. This fixes last of the failing tests: fuzzed.tests. Green again!
Behdad Esfahbod 03a5a6f8 2017-09-01T19:09:54 [util] Add --unicodes to hb-view / hb-shape Fixes https://github.com/behdad/harfbuzz/issues/154
Behdad Esfahbod b262ebcc 2017-08-30T17:25:10 [util] Fix cluster sweeping during --verify If *I* get this wrong in 2017, I have no idea how others get their head around cluster math... Fixes tests/arabic-fallback-shaping.tests
Behdad Esfahbod 69d701b0 2017-08-30T17:07:29 [util] When --verify fails, return reconstructed shape results
Behdad Esfahbod 099472e0 2017-08-30T16:45:06 hb_buffer_diff() tweak I like to have a mode where CONTAINS_NOTDEF and CONTAINS_DOTTEDCIRCLE are not returned. Abused a value of -1 for that. hb-shape now uses it. Fixes two of the six tests failing with --verify in test/shaping/run-tests.sh.
Behdad Esfahbod a9e52a1a 2017-08-15T17:30:18 [util] Prefix trace lines with "trace:", and error lines with "error:"
Behdad Esfahbod 7ea10c35 2017-08-15T17:12:28 [util] Respect eot/bot in safe-to-break test; hook up hb_buffer_diff()
Behdad Esfahbod a88e2a73 2017-08-14T14:49:21 [util] Fix leaks
Behdad Esfahbod 05fabbd0 2017-08-11T19:51:06 [unsafe-to-break] Towards verifying unsafe-to-break in --verify We break and shape fragments and reconstruct shape result from them. Remains to compare to original buffer. Going to add some buffer comparison API and use here, instead of open-coding.
Behdad Esfahbod d2052278 2017-08-11T15:12:25 [util] Add --verify to hb-shape / hb-view that verifies shape results Right now it checks for monotone cluster values. Other checks to be added.
Behdad Esfahbod 40bd7e9a 2016-05-02T14:47:45 [unsafe-to-break] Add UNSAFE_TO_BREAK flag Not all shapers code is updated to set this properly. GSUB and Arabic shaper are updated. GPOS and other shapers are NOT. Fixes https://github.com/behdad/harfbuzz/issues/224
Behdad Esfahbod 3e44748e 2017-08-09T22:09:01 [util] Fix two other Coverity warnings
Behdad Esfahbod 356f93b6 2017-08-09T22:06:53 [util] Fix warning
Behdad Esfahbod 6f38845d 2017-07-19T17:20:55 [hb-shape] Rename --show-messages to --trace https://github.com/behdad/harfbuzz/issues/506
Behdad Esfahbod e6035055 2017-07-18T19:14:19 [hb-shape] Improve shaping-debug output Before, that was printed using --debug (and in both hb-shape and hb-view). Changed it, now hb-shape has a new command-line argument called --show-messages. When invoked, it also respects other output formatting options. The messages are better formatted and printed to te same place that hb-shape output is directed to. Previously they were written to stderr. Fixes https://github.com/behdad/harfbuzz/issues/506
Philip Withnall 925ceacf 2017-02-08T02:17:48 util: Add missing field initialisers in constructor (#410) Coverity ID: 141042
Behdad Esfahbod a4290905 2017-01-22T19:01:07 [var] Flesh out --variations documentation
Behdad Esfahbod 7647a05a 2017-01-22T17:47:49 Minor
Behdad Esfahbod 47ee34e8 2017-01-21T18:10:08 [var] Hook up variations to FreeType face hb-view correctly renders variations with ft font-funcs now. hb-ot-font needs HVAR implementation.
Behdad Esfahbod 111f3e55 2017-01-21T17:51:41 [util] Add --variations Is hooked up to the font, but not to FreeType, so raster doesn't show yet. Documentation needs to be done.
Behdad Esfahbod de508516 2016-04-26T11:28:37 [util] Print out --debug buffer to stderr
Chun-wei Fan 35ded3af 2015-11-03T16:56:27 build: Move source listings into separate Makefile snippets This moves all the source listings in src/Makefile.am, src/hb-ucdn/Makefile.am and util/Makefile.am into separate Makefile snippets, so that they may be shared between different Makefile-based build systems, such as NMake for Visual Studio.
Behdad Esfahbod 0475ef2f 2015-12-18T18:17:07 [buffer] Add debugging, aka, message, API Currently just announces lookup applications. Message-API *will* change. hb-shape / hb-view are updated to print-out messages to stder if --debug is specified.
Behdad Esfahbod 21e5d7ed 2015-12-17T16:28:38 [util] Use O_BINARY instead of _O_BINARY The latter doesn't seem to be available in Cygwin. I'm surprised it compiled before...
Behdad Esfahbod 808d3fc0 2015-12-10T16:55:16 [util] Port hb-view to use font metrics from HarfBuzz instead of cairo
Chun-wei Fan a49e7b7e 2015-11-03T18:49:34 MSVC builds: Add fallback implementation for pre-2013 MSVC Pre-2013 MSVC does not have scalbn() and scalbnf(), which are used in the utility programs. Add fallback implementations for these, which can be used when necessary.
Chun-wei Fan 998e8dda 2015-11-02T16:55:29 util: Fix build on Visual Studio Use the fallback implementation for lround() only on pre-2013 Visual Studio, and ensure we are clear about the types of the parameters for lround() and scalbnf(), since Visual Studio can be quite picky on ambiguous parameter types. Also, use g_ascii_strcasecmp() rather than strcasecmp() as we are already using GLib for this code and we are assured that g_ascii_strcasemp() is available. For scalbnf() on pre-2013 Visaul Studio, a fallback implementation is needed, but use another forced-included header for those compilers, which will be added later. Also use (char)27 on Visual Studio builds as '\e' is not a recognized escape sequence, which will do the same thing.
Behdad Esfahbod e97835ad 2015-11-10T11:37:01 [util] Fix crash when --output-file is specified but not --output-format
Behdad Esfahbod 6c0ebd02 2015-11-05T11:37:48 [util] If font has color, generate PNG with color
Behdad Esfahbod 3530cc2d 2015-11-03T11:34:47 [util] Fix option-parsing leaks
Behdad Esfahbod 642135f3 2015-11-03T11:26:34 [util] In --debug mode, duplicate font data This has the effect that the font data will end up in a memory section malloc()ed exactly to its size. This gives us better valgrind detection of out-of-bounds access. Previously, the font data was placed in a mmap()ed section or GString-allocated area, which didn't have proper protections at the end when running under valgrind.
Behdad Esfahbod fdd1770e 2015-08-24T13:49:55 Add API/cmdline to show glyph extents when serializing buffer New API: HB_BUFFER_SERIALIZE_FLAG_GLYPH_EXTENTS hb-shape now accepts --show-extents. Patch from Simon Cozens.
Behdad Esfahbod 376d587f 2015-07-22T16:51:12 Implement more granular cluster-merging TODO: Documentation. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=71445
Behdad Esfahbod cd042fc8 2015-06-18T10:55:13 [util] Disable hb-fc-list for now Until I figure out what to do about the API, and finalize the tool.
Behdad Esfahbod 16dac7ec 2015-06-03T12:07:46 Fix build
Behdad Esfahbod ff0f2105 2015-05-18T14:16:28 [util] Minor
Behdad Esfahbod 820505a1 2015-04-13T23:51:45 Whitespace
Behdad Esfahbod 76d57331 2015-04-13T23:40:35 Merge pull request #86 from cpfair/hb-shape-output-help-improvement Improve hb-shape/hb-view's help text w.r.t. output options
Behdad Esfahbod fe97b65a 2014-08-06T16:49:51 [utils] Add hb-fc-list This is a tool that lists all fonts that can render a given string. It uses hb_shape() to do so, and as such is aware of HarfBuzz's normalizer.
Behdad Esfahbod e8fd8393 2015-04-09T15:52:26 [util/hb-view] Fix rendering with all combinations of negative scales
Behdad Esfahbod 69d5af93 2015-04-09T15:17:16 [util] Minor
Behdad Esfahbod a664810e 2015-04-09T15:04:42 [util] Accept comma as well as space when separating components of args Applies to --font-size and --margin. Hopefully the scanf usage here doesn't have compatibility issues (star being counted in the return value, etc).
Behdad Esfahbod e2d4e848 2015-01-28T20:29:48 [util] Add convenience "make lib" target
Collin Fair 9ee176ee 2015-02-14T09:59:44 Stop hb-shape docs leaking into hb-view
Collin Fair 952b8dbd 2015-02-14T09:44:00 'All' of the above, not 'each'
Collin Fair 9e867b64 2015-02-14T09:32:04 Remove reference to --help-output-content in --help-output (as --help-output-format's options aren't available in hb-view)
Collin Fair 1d55ffeb 2015-02-14T09:29:35 Add serialization syntax documentation. Clarify naming and wording in --help-output/--help-format