|
cd77846b
|
2021-09-14T08:35:19
|
|
[util] Fix leak of an hb_font_t
|
|
11b0b688
|
2021-08-12T11:38:28
|
|
[util/hb-subset] Pre-parse font-face so we can use it during main parsing
|
|
c45d2a9c
|
2021-08-12T11:17:26
|
|
[util] Allow setting cli summary / description
|
|
4f3b7b70
|
2021-08-12T11:05:31
|
|
[util] Remove unused usage
|
|
c0ea4e2d
|
2021-08-11T18:30:08
|
|
[util] Use post_parse to validate
|
|
7e4fcf1b
|
2021-08-11T12:12:49
|
|
[util] Rename add_main_options
|
|
62fb1021
|
2021-08-11T12:03:07
|
|
[util] Move add_main_options() invocation
|
|
7d2e9164
|
2021-08-07T13:38:19
|
|
[util] Move text options into text_options_t
Remove now empty options.cc.
|
|
93bc62e9
|
2021-08-07T13:13:58
|
|
[util] Move output options into output-options.hh
|
|
5545eea7
|
2021-08-07T11:04:46
|
|
[util] Remove main_font_text_t class, use bare function
|
|
58c22335
|
2021-08-06T23:45:59
|
|
[util] Move face/font options into face/font-options.hh
|
|
6edd50ae
|
2021-08-06T23:36:45
|
|
[util] Move option_parser_t code into options.hh
|
|
798bb89c
|
2021-08-06T23:29:29
|
|
[util] Move shape format options into shape-format.hh
|
|
c3599fde
|
2021-08-06T23:24:28
|
|
[util] Move shape options into shape-options.hh
|
|
cfb2d6ad
|
2021-08-06T23:14:30
|
|
[util] Move view options into view-options.hh
|
|
167f58a2
|
2021-08-06T23:03:30
|
|
[util] Move subset options into subset-options.hh
|
|
869e20e0
|
2021-08-06T18:09:31
|
|
[util] separate face options from font options
|
|
71440dbd
|
2021-08-05T13:48:59
|
|
[util] Move font-size and upem to be extern variables
|
|
463411a1
|
2021-08-05T11:44:35
|
|
[util] Remove unused option_group_t
|
|
8588173e
|
2021-08-05T11:43:25
|
|
[util] Rework post_parse() handling
|
|
3362b48f
|
2021-08-05T11:30:39
|
|
[util] Templatize add_group logic
|
|
fe90fbeb
|
2021-08-05T11:22:20
|
|
[util] Remove unused pre_parse callback logic
|
|
09e4d7dd
|
2021-08-05T11:21:20
|
|
[util] Simplify output_options_t
|
|
e109f9a6
|
2021-08-05T11:05:51
|
|
[util] Collect cmdline arg options outside of constructor
|
|
e57dd668
|
2021-08-05T10:33:31
|
|
[util] Initialize struct members inline
|
|
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.
|
|
f9d8e4a9
|
2021-07-29T15:25:41
|
|
[subset] switch ..._set_flags to not take a mask.
|
|
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.
|
|
d7541f7b
|
2021-07-29T00:09:24
|
|
[util/hb-shape] Free cached resources on termination
|
|
ad03f34d
|
2021-07-28T19:05:12
|
|
[util/hb-shape] Cache blob/face in batch mode
|
|
5dae8297
|
2021-07-28T11:35:40
|
|
[util] Minor followup to https://github.com/harfbuzz/harfbuzz/pull/3083
|
|
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.
|
|
1bb00cd5
|
2021-05-26T14:18:32
|
|
[subset] add num-iterations flag to util/hb-subset.
|
|
a0203a28
|
2020-09-17T16:49:59
|
|
Use hb_buffer_serialize to trace in utils
|
|
069c5de9
|
2020-05-14T18:58:53
|
|
[util/hb-view] Add --font-extents
Fixes https://github.com/harfbuzz/harfbuzz/issues/2402
|
|
b79ceac3
|
2019-12-15T16:50:01
|
|
Prefer UINT_MAX instead of uint overflow.
Also, prefer HB_FEATURE_GLOBAL_START and HB_FEATURE_GLOBAL_END.
|
|
a0b4ac4d
|
2019-08-24T17:57:14
|
|
Turn 8 spaces to tab across the project
According to the current code style of the project
|
|
659eeddb
|
2019-06-03T22:31:50
|
|
Use C++11 override keyword.
|
|
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.
|
|
67064294
|
2019-05-16T15:13:39
|
|
[subset] Add drop-tables option to hb-subset util.
|
|
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.
|
|
490d52f9
|
2019-01-28T17:43:42
|
|
[subset] Add retain-gids option to hb-subset executable.
|
|
60022ecc
|
2019-01-26T14:04:51
|
|
Fix -Wcast-function-type warnings in util/ with gcc 4.8
|
|
e4120085
|
2018-12-17T21:31:01
|
|
Remove redundant void from C++ sources (#1486)
|
|
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.
|
|
43ee0e4d
|
2018-11-06T09:57:17
|
|
Merge branch 'master' into cff-subset
|
|
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
|
|
e600e544
|
2018-11-01T16:13:56
|
|
Merge branch 'master' into cff-subset
|
|
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
|
|
83a61273
|
2018-10-30T01:24:23
|
|
[util] Minor
|
|
f7a08cd4
|
2018-10-30T11:29:09
|
|
Fix extra semicolon issues and test that on CI (#1330)
|
|
6131fb62
|
2018-10-30T00:38:01
|
|
[util] Don't close stdin/stdout
|
|
cf92cb7e
|
2018-10-19T22:21:39
|
|
Use g_strdup instead of strdup
Cygwin does not seem to have strdup.
|
|
1e8fdd28
|
2018-10-10T16:32:35
|
|
Remove HAVE_OT
We never tested compiling without it. Just kill it. We always build
our own shaper.
|
|
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
|
|
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
|
|
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*)
|
|
89ed040b
|
2018-09-30T06:06:26
|
|
[util] Fix more non-virtual-destructor warnings
|
|
2382dd07
|
2018-09-30T05:54:47
|
|
Minor
|
|
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
^
|
|
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.
|
|
c77ae408
|
2018-08-25T22:36:36
|
|
Rename hb-*private.hh to hb-*.hh
Sorry for the noise, downstream custom builders. Please adjust.
|
|
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.
|
|
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.
|
|
ce17340b
|
2018-04-20T10:29:06
|
|
Add hb_blob_create_from_file, a new API (#926)
|
|
4a1d51ef
|
2018-02-26T20:23:41
|
|
Merge pull request #818 from googlefonts/drophints
[subset] Drop hints
|
|
bb82f013
|
2018-02-25T12:30:33
|
|
[aat] trak sanitization
|
|
d78393b5
|
2018-02-23T17:53:26
|
|
Merge branch 'master' of https://github.com/harfbuzz/harfbuzz into drophints
|
|
4f6f7c3b
|
2018-02-23T02:54:12
|
|
[util] Implement ppem/ptem on hb-{shape,view} (#811)
|
|
74e0c13a
|
2018-02-21T11:19:18
|
|
[subset] drop hint tables if so flagged. Still need to dump glyf instructions.
|
|
0bd100e1
|
2018-02-21T10:34:00
|
|
[subset] add --hinting flag
|
|
194140d3
|
2018-02-08T16:27:57
|
|
[util] Minor
|
|
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.
|
|
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
|
|
17f40b7c
|
2017-10-27T09:22:30
|
|
Include hb-private.hh more consistently
Part of fixing https://github.com/behdad/harfbuzz/issues/585
|
|
dbdbfe3d
|
2017-10-15T12:11:08
|
|
Use nullptr instead of NULL
|
|
dad431e7
|
2017-10-15T10:55:32
|
|
[util] Include hb-private.hh
Simplifies compatibility issues by centralizing all boilerplate code
in hb-private.hh.
|
|
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!
|
|
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
|
|
69d701b0
|
2017-08-30T17:07:29
|
|
[util] When --verify fails, return reconstructed shape results
|
|
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.
|
|
a9e52a1a
|
2017-08-15T17:30:18
|
|
[util] Prefix trace lines with "trace:", and error lines with "error:"
|
|
7ea10c35
|
2017-08-15T17:12:28
|
|
[util] Respect eot/bot in safe-to-break test; hook up hb_buffer_diff()
|
|
a88e2a73
|
2017-08-14T14:49:21
|
|
[util] Fix leaks
|
|
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.
|
|
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.
|
|
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
|
|
6f38845d
|
2017-07-19T17:20:55
|
|
[hb-shape] Rename --show-messages to --trace
https://github.com/behdad/harfbuzz/issues/506
|
|
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
|
|
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.
|
|
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.
|
|
e97835ad
|
2015-11-10T11:37:01
|
|
[util] Fix crash when --output-file is specified but not --output-format
|
|
3530cc2d
|
2015-11-03T11:34:47
|
|
[util] Fix option-parsing leaks
|
|
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.
|
|
376d587f
|
2015-07-22T16:51:12
|
|
Implement more granular cluster-merging
TODO: Documentation.
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=71445
|
|
cd4eb96a
|
2015-01-20T12:30:45
|
|
[util] Add --font-size to hb-shape
Also makes hb-view to use 8 bits of subpixel precision and shape at
requested size, instead of always shaping at upem and scaling results.
|
|
8650def7
|
2014-07-05T15:50:18
|
|
[util] Add option to set font function implementation to use
Supports ft and ot right now. hb-view currently not rendering with ot.
Will fix after some clean up.
|
|
2306ad46
|
2014-07-04T18:09:29
|
|
[util] Fix memory issue
|
|
ea5e8a02
|
2014-03-19T15:38:02
|
|
[util] Plug minor leak
|
|
c2bc8187
|
2013-10-27T23:36:35
|
|
Work with old and new glib
Avoids "deprecated" warnings.
|