Commit graph

806 commits

Author SHA1 Message Date
Behdad Esfahbod
ea08b04752 [util] Fix --glyphs output with negative numbers 2025-03-28 16:25:58 -06:00
Behdad Esfahbod
d47a47e20b [util] Make --help less verbose again
Just the main page gets env-vars, exit-codes, and see-also.
2025-03-27 13:59:08 -06:00
Khaled Hosny
7ab42f9af3 [util] Build man pages only if docs are enabled 2025-03-27 21:31:29 +02:00
Khaled Hosny
9609f50bad [util] Build man page only if the corresponding util is built 2025-03-27 21:31:29 +02:00
Khaled Hosny
9a80c0da84 [util] Install man pages 2025-03-27 21:16:12 +02:00
Behdad Esfahbod
7f10c0edfd [util] Towards building manpages
TODO:
1. Only when docs are enabled?
2. Installdir
3. How to include in release?

Fixes https://github.com/harfbuzz/harfbuzz/issues/5208
2025-03-26 22:21:51 -06:00
Behdad Esfahbod
bd5b8a1feb [util] Report exit codes in help
Some checks failed
configs-ci / build (push) Waiting to run
fontations / build (push) Waiting to run
linux-ci / build (push) Waiting to run
macos-ci / build (push) Waiting to run
msvc / msvc-2019-amd64 (push) Waiting to run
msvc / msvc-2019-x86 (push) Waiting to run
msys2 / CLANG64 (push) Waiting to run
msys2 / MINGW32 (push) Waiting to run
msys2 / MINGW64 (push) Waiting to run
Scorecard supply-chain security / Scorecard analysis (push) Failing after 1s
arm / arm-none-eabi (push) Waiting to run
2025-03-26 21:35:32 -06:00
Behdad Esfahbod
e4410a85fa [util] Simplify envvar reporting 2025-03-26 21:35:32 -06:00
Khaled Hosny
a6f563247e [util] Fix Windows build
Windows headers define `environ`.
2025-03-27 03:26:20 +02:00
Behdad Esfahbod
93288a1ced [util] Fix crasher 2025-03-27 03:26:20 +02:00
Behdad Esfahbod
a410a042c7 [util] Add environment and see also sections
Some checks failed
arm / arm-none-eabi (push) Waiting to run
configs-ci / build (push) Waiting to run
fontations / build (push) Waiting to run
linux-ci / build (push) Waiting to run
macos-ci / build (push) Waiting to run
msvc / msvc-2019-amd64 (push) Waiting to run
msvc / msvc-2019-x86 (push) Waiting to run
msys2 / MINGW32 (push) Waiting to run
msys2 / MINGW64 (push) Waiting to run
msys2 / CLANG64 (push) Waiting to run
Scorecard supply-chain security / Scorecard analysis (push) Failing after 1s
Part of https://github.com/harfbuzz/harfbuzz/issues/5208
2025-03-26 18:09:07 -06:00
Behdad Esfahbod
4d83b238ea [util] Link to website for more info / reporting bugs
Part of https://github.com/harfbuzz/harfbuzz/issues/5208
2025-03-26 13:01:34 -06:00
Behdad Esfahbod
59001aa952 [util] Add brief --help descriptions
Part of https://github.com/harfbuzz/harfbuzz/issues/5208
2025-03-26 12:33:06 -06:00
Behdad Esfahbod
3d3f241941 [util] Improve help messages a bit
Some checks failed
arm / arm-none-eabi (push) Waiting to run
configs-ci / build (push) Waiting to run
fontations / build (push) Waiting to run
linux-ci / build (push) Waiting to run
macos-ci / build (push) Waiting to run
msvc / msvc-2019-amd64 (push) Waiting to run
msvc / msvc-2019-x86 (push) Waiting to run
msys2 / CLANG64 (push) Waiting to run
msys2 / MINGW32 (push) Waiting to run
msys2 / MINGW64 (push) Waiting to run
Scorecard supply-chain security / Scorecard analysis (push) Failing after 1s
Part of https://github.com/harfbuzz/harfbuzz/issues/5208
2025-03-26 01:18:09 -06:00
Behdad Esfahbod
75643768de [util] List available shapers in --help-all
Remove it from --version.

Part of https://github.com/harfbuzz/harfbuzz/issues/5208
2025-03-26 01:00:38 -06:00
Behdad Esfahbod
29c800bd8d [util] Return diff values for diff failures
Some checks failed
arm / arm-none-eabi (push) Waiting to run
configs-ci / build (push) Waiting to run
fontations / build (push) Waiting to run
linux-ci / build (push) Waiting to run
macos-ci / build (push) Waiting to run
msvc / msvc-2019-amd64 (push) Waiting to run
msvc / msvc-2019-x86 (push) Waiting to run
msys2 / MINGW32 (push) Waiting to run
msys2 / MINGW64 (push) Waiting to run
msys2 / CLANG64 (push) Waiting to run
Scorecard supply-chain security / Scorecard analysis (push) Failing after 0s
Need documentation in the help output...

Fixes https://github.com/harfbuzz/harfbuzz/issues/5164
2025-03-25 16:55:03 -06:00
Behdad Esfahbod
2b5f244639 [util] Remove hb-ot-shape-closure
Not used...
2025-03-25 14:12:36 -06:00
Behdad Esfahbod
7612ec44dc [util] Show glyph extents only if available 2025-03-23 13:11:23 -06:00
Behdad Esfahbod
4822cb7672 [hb-info] Report WebAssembly in technology 2025-03-19 15:14:58 -06:00
Behdad Esfahbod
60ce16f221 [CI] Fix build 2025-03-19 13:22:27 -06:00
Behdad Esfahbod
34b9100c67 [hb-info] Fix argument parsing vs default behavior
Default was if no args other than one font was provided, then
--show-all was enabled. This broke if eg. --face-loader=ft was
provided, then suddenly nothing was shown. Fix it to --show-all
if no "query" options are provided.
2025-03-19 13:15:44 -06:00
Behdad Esfahbod
38889c3ad6 [coretext] Fix loading named instances
Needs tests...

TTC indices > 0 can't be loaded with CoreText API it seems.

Fixes https://github.com/harfbuzz/harfbuzz/issues/5158
2025-03-18 03:28:44 -06:00
Behdad Esfahbod
b24a93c68e [util] Reload face if face-loader changed 2025-03-17 21:05:21 -06:00
Behdad Esfahbod
f88fe4d403 [util] Update for new grapheme cluster level 2025-03-10 01:02:56 -06:00
Behdad Esfahbod
c88e819965 Fix compiler warning 2025-03-09 16:53:03 -06:00
Behdad Esfahbod
39ade99d47 [face] Two new APIs:
+ hb_face_create_from_file_or_fail_using()
+ hb_face_list_loaders()
2025-03-09 01:25:52 -07:00
Behdad Esfahbod
437ce95059 [util] Add --list-font-funcs 2025-03-08 13:12:15 -07:00
Behdad Esfahbod
2a878b1b76 [font-funcs] Add two new API
+ hb_font_set_funcs_using()
+ hb_font_list_funcs()

Part of https://github.com/harfbuzz/harfbuzz/issues/5117
2025-03-08 11:50:53 -07:00
Behdad Esfahbod
395270e494 [fontations] Try folding into libharfbuzz 2025-03-06 04:23:24 +02:00
Behdad Esfahbod
f28daba53c [fontations] I don't know... 2025-03-06 04:23:24 +02:00
Behdad Esfahbod
161b20f333 Try building with cargo 2025-03-06 04:23:24 +02:00
Behdad Esfahbod
f9b4706151 [fontations] Use as dependency, not library
Since it's optional.
2025-03-06 04:23:24 +02:00
Behdad Esfahbod
2abe54fc9c Almost works! 2025-03-06 04:23:24 +02:00
Behdad Esfahbod
718542ef7a [util] Space 2025-03-03 22:45:15 -07:00
Khaled Hosny
69e1c3c352 [ft] Add hb_ft_font_get_ft_face()
A new name for hb_ft_font_get_face(), which is now deprecated.

Fixes  https://github.com/harfbuzz/harfbuzz/issues/5084
2025-02-28 23:56:03 +02:00
Behdad Esfahbod
e6eec3cc14 [test] Silence compiler warning 2025-02-18 00:48:49 -07:00
Behdad Esfahbod
ee19666c39 [hb-shape/view] Allow --unicodes and --text if at least one is empty
Useful for scripting.
2025-02-09 05:14:36 +00:00
Qunxin Liu
3bb89eebd6 [instancer] use hb_parse_double() for parsing axis positions
Added hb_subset_axis_range_from/to_string()
2024-11-25 09:38:13 -07:00
Behdad Esfahbod
2ddae77179 [util/cairo] Handle all null matrices 2024-11-17 00:02:03 -07:00
Behdad Esfahbod
52becf1c6d [test] Fix a leak 2024-10-15 14:58:13 -06:00
Behdad Esfahbod
734ba5ab48 [hb-info] Fix font face number recording for .dfont 2024-10-15 14:58:13 -06:00
Behdad Esfahbod
67591f8511 [util] Add --face-loader
Currently crashes with ft. Investigating.
2024-10-15 14:58:13 -06:00
Behdad Esfahbod
75d168cbf4 [util] Rename a variable 2024-10-15 14:58:13 -06:00
Behdad Esfahbod
aa933abb76 [util] Use hb_face_create_from_file_or_fail() 2024-10-15 14:58:13 -06:00
Behdad Esfahbod
8a805271a1 [coretext] Start implementing CoreText font-funcs
Does nominal glyph mapping, horiz advances, and draw so far.
2024-10-13 13:04:29 -06:00
Behdad Esfahbod
e1269215f9 Revert "Fix a compiler warning"
This reverts commit 377e3c67a4.

377e3c67a4 (commitcomment-147888850)
2024-10-13 13:01:09 -06:00
Behdad Esfahbod
377e3c67a4 Fix a compiler warning 2024-10-12 20:06:54 -06:00
Khaled Hosny
667ce682a2 [hb-view] Support cairo script as output format
Can be handy for debugging the series of operations cairo performs.
2024-09-23 22:08:41 +03:00
Behdad Esfahbod
7a390b5095 [hb-view] Simplify background drawing
Works around a Firefox bug.

Fixes https://github.com/harfbuzz/harfbuzz/issues/4811
2024-09-23 12:16:05 -06:00
Behdad Esfahbod
287046f71a [buffer] Hook up not-found-variation-selector-glyph
Fixes https://github.com/harfbuzz/harfbuzz/issues/4398
2024-09-21 12:21:56 -06:00