Behdad Esfahbod
6de9d2b89f
[justify] Rename hb-view --width to hb-view --justify-to
2 years ago
Behdad Esfahbod
25c66d633d
[justify] Wrap in HB_EXPERIMENTAL_API
2 years ago
Behdad Esfahbod
aa10deaf42
[justify] Print default buffer width in hb-shape --width=-1
2 years ago
Behdad Esfahbod
b937edfb14
[justify] Add min/max target_width
...
Speeds up solving when some slack available.
2 years ago
Behdad Esfahbod
6e483c4061
[shape] Add hb_shape_justify() and hb-view --width
2 years ago
Behdad Esfahbod
161d8f9d26
[util] Rename a variable
2 years ago
Behdad Esfahbod
68a790261c
[util] If --glyphs doesn't have positions, use glyph advances
...
Such that eg --glyphs=10 works.
2 years ago
Behdad Esfahbod
f798cf225e
[util] Don't require final ']' in --glyphs
2 years ago
Behdad Esfahbod
0066e824f0
[util] Fix vertical positioning with --glyphs
2 years ago
Behdad Esfahbod
d45f7265e9
[hb-view/hb-shape] Add --glyphs
...
This makes hb-view take output of hb-shape and render it.
2 years ago
Behdad Esfahbod
f43dadb8ee
Rename kashida -> tatweel
2 years ago
Behdad Esfahbod
4f09ea5e6b
[hb-shape] Add --safe-to-insert-kashida flag
...
https://github.com/harfbuzz/harfbuzz/pull/3762
2 years ago
Behdad Esfahbod
1eb8e82086
[util] Accept space as delimiter for --features/--variations
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/3715
2 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
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
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
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
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
3 years ago
Khaled Hosny
430224b1a0
[buffer] Handle pre/post-context in buffer_append
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/1843
3 years ago
Simon Cozens
e29f56354a
Replace "langstr" with more helpful help.
3 years ago
Behdad Esfahbod
b83f25c749
[util/hb-subset] Revamp option groups
3 years ago
Behdad Esfahbod
58bfe40794
[util] Move hb-subset away from main-font-text
3 years ago
Behdad Esfahbod
c3599fded7
[util] Move shape options into shape-options.hh
3 years ago
Behdad Esfahbod
cfb2d6ad9e
[util] Move view options into view-options.hh
3 years ago
Behdad Esfahbod
167f58a2ca
[util] Move subset options into subset-options.hh
3 years ago
Behdad Esfahbod
869e20e09f
[util] separate face options from font options
3 years ago
Behdad Esfahbod
71440dbd90
[util] Move font-size and upem to be extern variables
3 years ago
Behdad Esfahbod
463411a1de
[util] Remove unused option_group_t
3 years ago
Behdad Esfahbod
8588173ee6
[util] Rework post_parse() handling
3 years ago
Behdad Esfahbod
3362b48f5a
[util] Templatize add_group logic
3 years ago
Behdad Esfahbod
fe90fbeba3
[util] Remove unused pre_parse callback logic
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
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
Garret Rieger
1bb00cd54b
[subset] add num-iterations flag to util/hb-subset.
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
Behdad Esfahbod
069c5de9f8
[util/hb-view] Add --font-extents
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/2402
5 years ago
Evgeniy Reizner
b79ceac3c6
Prefer UINT_MAX instead of uint overflow.
...
Also, prefer HB_FEATURE_GLOBAL_START and HB_FEATURE_GLOBAL_END.
5 years ago