Behdad Esfahbod
21f1054d47
[util/hb-subset] Keep face around instead of font
3 years ago
Behdad Esfahbod
db6fbe29e4
[util/hb-subset] Use driver_t<> in outer block as well
...
a363ce573c (r54282223)
3 years ago
Behdad Esfahbod
47d47e8c43
[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.
3 years ago
Behdad Esfahbod
a363ce573c
[util/hb-subset] Minor refactor of batch mode
...
To match recent changes to hb-shape.
3 years ago
Khaled Hosny
10e73d188a
[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
3 years ago
Behdad Esfahbod
ed99c80623
[util/hb-shape] Refactor driver type duplication
3 years ago
Behdad Esfahbod
05cf81283b
[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.
3 years ago
Garret Rieger
f9d8e4a976
[subset] switch ..._set_flags to not take a mask.
3 years ago
Garret Rieger
3d534b146c
[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.
3 years ago
Behdad Esfahbod
d7541f7b55
[util/hb-shape] Free cached resources on termination
3 years ago
Behdad Esfahbod
ad03f34df7
[util/hb-shape] Cache blob/face in batch mode
3 years ago
Behdad Esfahbod
5dae8297bb
[util] Minor followup to https://github.com/harfbuzz/harfbuzz/pull/3083
3 years ago
Khaled Hosny
50379fbb15
[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.
3 years ago
Khaled Hosny
92b85749f2
[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!
3 years ago
Qunxin Liu
71b5509c19
[subset] support option --glyph-names
3 years ago
Garret Rieger
668f2bd93e
[subset] Add hb_subset_or_fail () to public subset api.
3 years ago
Qunxin Liu
eee7b459ee
[subset] add option --no-prune-unicode-ranges
3 years ago
Qunxin Liu
d07f789ae3
[subset] support option "--notdef-outline"
3 years ago
Behdad Esfahbod
bdfed8f113
[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.
3 years ago
Behdad Esfahbod
c61ce962cf
[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
3 years ago
Qunxin Liu
cb5a6b5a27
[subset] support option --layout-features
4 years ago
Garret Rieger
73ff04a324
[subset] add option to have the subsetter set the mac overlaps flag on each glyph.
4 years ago
Garret Rieger
1bb00cd54b
[subset] add num-iterations flag to util/hb-subset.
4 years ago
Behdad Esfahbod
42bf8e3d49
[util] Disable chafa's truecolor mode
...
See https://github.com/harfbuzz/harfbuzz/pull/2959#issuecomment-827056111
4 years ago
Hans Petter Jansson
8298c2f93b
[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 .
4 years ago
Behdad Esfahbod
b3159ed8d2
[util] Silence compiler warning
4 years ago
Khaled Hosny
c30349d54e
[hb-view] Support kitty inline images protocol
...
https://github.com/harfbuzz/harfbuzz/issues/2758
4 years ago
Khaled Hosny
f7d5889b3e
[hb-view] Support iTerm2 inline images protocol
...
https://github.com/harfbuzz/harfbuzz/issues/2758
4 years ago
Khaled Hosny
5091ea7e24
Merge pull request #2733 from astiob/buffer-context-doc
...
[docs] Describe buffer context applicability more explicitly
4 years ago
Ebrahim Byagowi
5193357832
Revert "Remove autotools build support"
...
This reverts commit 01ac32aab2
.
4 years ago
Ebrahim Byagowi
01ac32aab2
Remove autotools build support
4 years ago
Ebrahim Byagowi
58a5961ca1
minor spacing tweak
4 years ago
Ebrahim Byagowi
07c43b8cf6
minor spacing tweak
4 years ago
Ebrahim Byagowi
5a7cc7fd8b
minor spacing tweak
4 years ago
Ebrahim Byagowi
ba810ce83d
[tests] Replace space with colon in batch mode
4 years ago
Christoph Reiter
03bd6ead44
[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
5 years ago
Behdad Esfahbod
069c5de9f8
[util/hb-view] Add --font-extents
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/2402
5 years ago
Qunxin Liu
b2a965df5e
[subset] Add support for "--gids" option
...
cmap subsetting now retains entries associated with any glyph ids explicitly requested
5 years ago
David Corbett
5a0936f53e
Increase the size of the serialization buffer
5 years ago
Ebrahim Byagowi
2a549aadd3
minor
5 years ago
Ebrahim Byagowi
2be859d289
minor, replace nullptr checks with implicit ones
5 years ago
Ebrahim Byagowi
1dd3896688
[meson] Make it work on autotools dist
5 years ago
Aaron Boxer
68f982415b
meson: update to latest master
5 years ago
Tim-Philipp Müller
618584e923
meson: rename incbase to incconfig
...
Makes it clearer what it's for: config.h. See #4 .
5 years ago
Tim-Philipp Müller
49ba211a9d
meson: add options to enable/disable various features
...
And fix build without GLib. Fixes #2 .
5 years ago
Mathieu Duponchelle
484313ff36
meson: install
5 years ago
Mathieu Duponchelle
99b26789d2
meson: more windows fixes
5 years ago
Mathieu Duponchelle
920efc0ef7
Add Meson build definitions
...
Fixes #490
http://mesonbuild.com
5 years ago
Qunxin Liu
36a5c042d7
[subset] Add "--name-languages" and "--name-legacy" options
...
Make name table subsetting consistent with fontTools
5 years ago
Ebrahim Byagowi
e171beeb5f
Revert "[subset] Add "--name-languages" and "--name-legacy" options"
...
Causes tests failures, please reapply when tests are fixed, thanks.
This reverts commit fd85818b5b
.
5 years ago