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
Behdad Esfahbod
39ea4cdd77
[hb-subset] Fix a resource leak
...
Part of https://github.com/harfbuzz/harfbuzz/issues/4832
2024-08-14 10:14:42 -07:00
Behdad Esfahbod
d5596dfb0b
[hb-subset] Report "Invalid font file."
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/4824#issuecomment-2272156543
2024-08-06 15:15:41 -06:00
Khaled Hosny
b461c4224a
Fold the remaining Makefile.sources into CMakeLists.txt
...
That is the only place where they are used now.
2024-06-27 16:33:16 +03:00
Khaled Hosny
cf1fdf1632
Drop autotools build
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/4720
2024-06-27 15:28:38 +03:00
Behdad Esfahbod
eba1add711
[hb-info] Use 128 as max glyphname / name length instead of 64
2024-06-08 19:10:39 -06:00
Garret Rieger
4cf606f674
[instancer] Promote partial instancing api out of experimental.
2024-05-02 21:22:18 +00:00
Garret Rieger
12dcafe015
Add test-hb-subset-parsing.c to extra dist. Needed for meson compile w/ experimental api.
2024-04-09 08:41:11 -05:00
Qunxin Liu
d6431dc7e6
[instancer] support *=drop, which would pin all axis to default location
2024-03-07 12:24:43 -07:00
Qunxin Liu
97309483ea
[instancer] rename HB_SUBSET_FLAGS_IUP_DELTA_OPT to HB_SUBSET_FLAGS_OPTIMIZE_IUP_DELTAS
2024-02-02 16:59:19 -08:00
Qunxin Liu
2dabbdfc66
[instancer] fix help message for --optimize
2024-02-02 13:39:33 -08:00
Qunxin Liu
c7a6030b31
[instancer] add a flag HB_SUBSET_FLAGS_IUP_DELTA_OPT
2024-01-26 09:27:27 -08:00
Behdad Esfahbod
081cbfd906
Fix warnings
2023-12-15 10:10:18 -07:00
Garret Rieger
ffa643c5aa
[subset] Add helper-subset.hh to Makefile sources.
2023-11-15 21:36:02 +00:00
Garret Rieger
d30c1dacf5
Add test suite for instancing option parsing.
2023-11-15 20:16:07 +00:00
Garret Rieger
43236ce345
[instancer] add the option to leave blanks in the min:def:max syntax.
...
When parsing axis positions in the --variations flag recognize empty values as meaning the existing value for that part. For example:
:300:500
Specifies min = existing, def = 300, max = 500.
See: https://github.com/fonttools/fonttools/issues/3322
2023-11-15 17:54:56 +00:00
Garret Rieger
c6884377ec
[subset] Add HB_SUBSET_FLAGS_IFTB_REQUIREMENTS flag.
...
When enabled the output subset conforms to the requirements for a base font to be patched by IFTB patches. IFTB is a proposed incremental font transfer patch. This new flag is set as experimental. Currently, setting this flag causes the output subset to also use long offsets for outline data in loca/glyf, gvar, CFF, and CFF2.
This change is a version of 3ae2fe2084
rebased onto head w/ tests added.
2023-11-06 16:49:09 -07:00
Garret Rieger
7b46d772c4
[instancer] Update help message for --instance.
...
Remove note about partial instancing not being supported. Add --variations flag as an alternate name for --instance. This matches other hb utils.
2023-11-01 14:56:47 -06:00