Behdad Esfahbod
76e6feb77f
[util/ansi] Enable all symbols in Chafa
...
Gives vastly smoother output. The previous setting was
equivalent to our in-house renderer.
3 years ago
Behdad Esfahbod
679c87ca36
[util/ansi] Fix chafa cell width/height
...
No idea why it was set to 10/20 instead of 8/16.
3 years ago
jfkthame
0cd404d0b8
Typo fix in hb-subset
...
s/substract/subtract/
3 years ago
Garret Rieger
38e81f2be9
[subset] Add --layout-scripts command line flag.
3 years ago
Behdad Esfahbod
f8d052df6d
[ansi-print] Remove impossible condition
3 years ago
Behdad Esfahbod
251320ea22
[ansi-print] Whitespace
3 years ago
Behdad Esfahbod
0d59d7952c
[ansi-print] Precision
3 years ago
Behdad Esfahbod
c695a09154
[ansi-print] Reorder cases; harmless
3 years ago
Behdad Esfahbod
ae0fce31cd
[ansi-print] Fix quadrants
3 years ago
Behdad Esfahbod
2ebaf0c5ba
[ansi-print] Fix unicolor detection
3 years ago
Behdad Esfahbod
a4db80ca0a
[ansi-print] Fix color calculation
...
Still something's wrong.
3 years ago
Behdad Esfahbod
6dd7e31f71
[util] Accept | as delimiter in Unicode parsing
3 years ago
Cosimo Lupo
cc0f1f3b60
Expose --passthrough-tables option to hb-subset CLI tool
3 years ago
Behdad Esfahbod
56f11ec938
[buffer] Add HB_BUFFER_FLAG_PRODUCE_UNSAFE_TO_CONCAT
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/3454
3 years ago
Behdad Esfahbod
c0b2f50c0b
[util] Rename template typenames to avoid clashing with actual types
...
Apparently MSVC2015 can confuse them
Fixes https://github.com/harfbuzz/harfbuzz/issues/3379
3 years ago
Behdad Esfahbod
096121badb
[util] Implement --sub-font
...
Internally creates a font at 2x and creates a sub-font from it...
3 years ago
Behdad Esfahbod
57aa8c3b3a
[draw] Another try at a stable draw moveto semantic
3 years ago
Behdad Esfahbod
640b6ffddd
[util] Default font-funcs to 'ot' instead of 'ft'
3 years ago
Behdad Esfahbod
9cc9ffe352
[util/draw] If HB_DRAW is not set, choose depending on cairo version
...
If HB_DRAW=0, don't use it, if HB_DRAW=1, use it, if unset, choose depending
on cairo version
3 years ago
Behdad Esfahbod
22f2c78c28
[util/draw] Explicitly chain from render_color_glyph to render_glyph
...
This seems to be more robust. See:
https://github.com/harfbuzz/harfbuzz/pull/3411#issuecomment-1033176635
3 years ago
Behdad Esfahbod
6a3dec357c
[util/draw] Use hb-draw in hb-view only if HB_DRAW=1
3 years ago
Behdad Esfahbod
18b8a1c345
[draw] Fix conversion warnings
3 years ago
Behdad Esfahbod
6812f7ee1e
[draw] Implement COLRv0 fonts
3 years ago
Behdad Esfahbod
5c558586eb
[util/draw] Apply slant to non-user-fonts as well
3 years ago
Behdad Esfahbod
4818b7ed72
[util] Add --font-slant
3 years ago
Behdad Esfahbod
cfc06c24d5
[util/draw] Render color glyphs if cairo API available
3 years ago
Behdad Esfahbod
542f8269cb
[util/draw/ft] Use hb-draw for font-funcs=ft as well
...
If cairo is >= 1.17.5.
This essentially breaks emoji and bitmap fonts for now.
3 years ago
Behdad Esfahbod
5d2df1208a
[util] Use hb-draw to render alternatively to cairo-ft
...
Is automatically enabled if cairo is recent enough, and font-funcs are
not 'ft'.
Uses cairo-user-font backend internally.
3 years ago
Behdad Esfahbod
d35f380126
[util] Change "All shapers failed." message to "Shaping failed."
...
Since we now emit this when verification fails as well.
3 years ago
Behdad Esfahbod
61823838f9
[buffer] Add HB_BUFFER_FLAG_VERIFY
...
Move buffer verification code inside the library, from util/.
Part of https://github.com/harfbuzz/harfbuzz/issues/3010
3 years ago
Behdad Esfahbod
36b1561715
Implement hb-shape --verify unsafe-to-concat flag
...
15 tests failing. Those look like legit places that unsafe-to-concat
needs more implementation.
3 years ago
luz paz
e2e305066a
Fix various typos
...
Found via `codespell -q 3 -S ./perf/texts -L actualy,ba,beng,fo,gir,inout,nd,ot,pres,ro,te,teh,timne`
3 years ago
Behdad Esfahbod
52f5711ed0
[buffer] Add hb_buffer_create_similar()
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/1555
3 years ago
Behdad Esfahbod
d0c3515ce4
[util] Copy unicode_funcs in copy_buffer_properties()
...
Part of https://github.com/harfbuzz/harfbuzz/issues/1555
3 years ago
Behdad Esfahbod
34f5b855aa
[util] Simplify copy_buffer_properties()
...
Now that hb_buffer_append() overlays segment_properties we can do this.
Part of https://github.com/harfbuzz/harfbuzz/issues/1555
3 years ago
Behdad Esfahbod
101d07efd9
[util] Move copy_buffer_properties() out of loop
...
Now that hb_buffer_append() overlays properties, we can do this.
Part of https://github.com/harfbuzz/harfbuzz/issues/1555
3 years ago
Behdad Esfahbod
720ab0883b
[util] Add --single-par
...
Use it in aots tests
Fixes https://github.com/harfbuzz/harfbuzz/issues/3129
Related https://github.com/harfbuzz/harfbuzz/issues/3298
3 years ago
Behdad Esfahbod
b58afe586f
[util] Undo treat as single-paragraph text provided on cmdline
...
Reverts d92ee726ce
except that it does so even in batch mode.
Am going to add a --single-par mode that will affect all input
modes.
Part of https://github.com/harfbuzz/harfbuzz/issues/3129
Fixes https://github.com/harfbuzz/harfbuzz/issues/3298
3 years ago
Behdad Esfahbod
da500568de
[API] Add hb_buffer_[sg]et_not_found_glyph() and --not-found-glyph
...
Instead of using gid=0 when a character is not found in the font,
client can now set a custom value. This is useful for shaper-driven
font fallback and to differentiate that from .notdef glyph.
Fixes https://github.com/harfbuzz/harfbuzz/issues/1360
3 years ago
Garret Rieger
d700646c33
[subset] In preperation for 3.0.0 release remove legacy subsetting api methods.
3 years ago
Behdad Esfahbod
cd77846bd9
[util] Fix leak of an hb_font_t
3 years ago
Behdad Esfahbod
da285d511f
[util/shape-consumer] Simplify font tracking
3 years ago
Khaled Hosny
838d670752
[subset] Improve alignment of --help-all message
4 years ago
Behdad Esfahbod
04cf6212d7
[util/hb-subset] Fix --version and --help again
...
38ad093216
4 years ago
Behdad Esfahbod
fdce294120
[util/hb-subset] Print error and suggest filing github issue if operation fails
...
https://github.com/harfbuzz/harfbuzz/issues/3173#issuecomment-906715780
4 years ago
Behdad Esfahbod
38ad093216
[util/hb-subset] Don't ignore errors during face parsing
...
Was ignoring file-not-found errors.
4 years ago
Garret Rieger
1e1438c4fb
[subset] fix --*-file options in hb-subset. ( #3176 )
...
The previous change to add -/+ versions of each set type broke all of the --*-file input options since all of the parse functions now default to replacing the set if the + variant is not being used. This fixes the issue by changing parse_file_for to pass '+' as the name to the parsing function. This triggers the append mode.
4 years ago
Garret Rieger
9db494f517
[subset] Update remaining subset input sets to use inversion for all. ( #3172 )
...
* [subset] Update remaining subset input sets to use inversion for all.
* [subset] Update flag help for remaining sets to mention -=.
4 years ago
Garret Rieger
75efade7a4
[subset] format --gids and --unicodes help messages better.
4 years ago
Garret Rieger
fa4bf7cf58
[subset] use inverted sets for glyph id input.
...
Adds --gids-=, --glyphs-=, --text-=, --unicodes-= options. Use inverted sets to represent all glyphs and/or all unicodes.
4 years ago