Behdad Esfahbod
38f2ec1703
[hb-shape] Move shape_output_t into separate file
2 years ago
Behdad Esfahbod
94be459808
[hb-shape] Internal rename
2 years ago
Behdad Esfahbod
c45d2a9c9d
[util] Allow setting cli summary / description
3 years ago
Behdad Esfahbod
4d73b3d9b1
[util] Add --batch to hb-view / hb-ot-shape-closure
3 years ago
Behdad Esfahbod
c98773ebb0
[util/hb-subset] Move output-file validation code into post_parse
3 years ago
Behdad Esfahbod
58bfe40794
[util] Move hb-subset away from main-font-text
3 years ago
Behdad Esfahbod
97a9e4e41e
[util] Separate shape_text_options_t from text_options_t
3 years ago
Behdad Esfahbod
fd0778aa2a
[util] Use post_parse in output_options_t
3 years ago
Behdad Esfahbod
24a9d8c78d
[util] Use post_parse in font_options_t
3 years ago
Behdad Esfahbod
9468e46998
[util] Rename main_font_text back to main_font_text_t
3 years ago
Behdad Esfahbod
9d8bbe3e53
[util] Make main_font_text a struct again
...
Going to move to G_OPTION_REMAINING.
3 years ago
Behdad Esfahbod
b83fd3a564
[util] Refactor batch-processing code into batch.hh
3 years ago
Behdad Esfahbod
d92ee726ce
[util/hb-shape] Treat as single-paragraph text other than provided by a file
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/3129
3 years ago
Behdad Esfahbod
7d2e9164ab
[util] Move text options into text_options_t
...
Remove now empty options.cc.
3 years ago
Behdad Esfahbod
93bc62e9b2
[util] Move output options into output-options.hh
3 years ago
Behdad Esfahbod
af9d2495dc
[util] Use inheritance for output_options_t
3 years ago
Behdad Esfahbod
5545eea7e5
[util] Remove main_font_text_t class, use bare function
3 years ago
Behdad Esfahbod
58c223357b
[util] Move face/font options into face/font-options.hh
3 years ago
Behdad Esfahbod
798bb89c96
[util] Move shape format options into shape-format.hh
3 years ago
Behdad Esfahbod
71440dbd90
[util] Move font-size and upem to be extern variables
3 years ago
Behdad Esfahbod
e014c6fa2d
[util/main-font-text] Move eol from template arg to main() arg
3 years ago
Behdad Esfahbod
09e4d7dd30
[util] Simplify output_options_t
3 years ago
Behdad Esfahbod
e109f9a6f9
[util] Collect cmdline arg options outside of constructor
3 years ago
Behdad Esfahbod
e57dd66889
[util] Initialize struct members inline
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
ed99c80623
[util/hb-shape] Refactor driver type duplication
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
5091ea7e24
Merge pull request #2733 from astiob/buffer-context-doc
...
[docs] Describe buffer context applicability more explicitly
4 years ago
Ebrahim Byagowi
ba810ce83d
[tests] Replace space with colon in batch mode
4 years ago
Ebrahim Byagowi
a0b4ac4dce
Turn 8 spaces to tab across the project
...
According to the current code style of the project
5 years ago
Ebrahim Byagowi
e412008599
Remove redundant void from C++ sources ( #1486 )
6 years ago
Behdad Esfahbod
edaa768253
[util] Use fgets instead of getline such that windows passes
6 years ago
Behdad Esfahbod
58e20f53bf
[util] Add hb-shape --batch
6 years ago
Behdad Esfahbod
71fd6325b6
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
7 years ago
Behdad Esfahbod
dbdbfe3d7b
Use nullptr instead of NULL
7 years ago
Behdad Esfahbod
a9e52a1af4
[util] Prefix trace lines with "trace:", and error lines with "error:"
7 years ago
Behdad Esfahbod
d2052278f2
[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.
7 years ago
Behdad Esfahbod
40bd7e9a1c
[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
7 years ago
Behdad Esfahbod
6f38845d9c
[hb-shape] Rename --show-messages to --trace
...
https://github.com/behdad/harfbuzz/issues/506
7 years ago
Behdad Esfahbod
e60350551a
[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
7 years ago
Philip Withnall
925ceacfed
util: Add missing field initialisers in constructor ( #410 )
...
Coverity ID: 141042
8 years ago
Behdad Esfahbod
fdd1770e00
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.
9 years ago
Behdad Esfahbod
cd4eb96abb
[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.
10 years ago
Behdad Esfahbod
0afedaa96c
[util/hb-shape] Fix crash; oops
11 years ago
Behdad Esfahbod
9109f1e944
[util/hb-shape] Accept an empty output-format that would skip output
...
Useful for benchmarking, to avoid buffer serialization overhead (which
seems to by far dominate shaping!)
11 years ago
Behdad Esfahbod
ea5e8a02eb
[util] Plug minor leak
11 years ago
Behdad Esfahbod
4dc798de19
Add hb-deprecated.h, and rename a couple enum values
...
Add deprecated alias for old name.
11 years ago
Behdad Esfahbod
7235f33f9e
Fix misc warnings reported by cppcheck
...
https://bugs.freedesktop.org/show_bug.cgi?id=65544
12 years ago
Behdad Esfahbod
4a765f092d
Minor
12 years ago
Behdad Esfahbod
9815a88111
[util] List supported output formats in --help output
12 years ago