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
Behdad Esfahbod
598de82f3a
[hb-subset] Fix warning
2023-10-27 12:13:13 -06:00
Behdad Esfahbod
2023384bdf
Merge pull request #4368 from googlefonts/support_gvar
...
Initial implementation for gvar partial instancing
2023-08-22 13:09:26 -07:00
Behdad Esfahbod
c7f2d440f4
[hb-view] Better cairo version check
2023-08-16 09:55:23 -07:00
Behdad Esfahbod
e714e7d4f3
[hb-view] Work around old cairo
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/4378
2023-08-16 09:54:08 -07:00
Qunxin Liu
0aa5dafefd
fix bots.
...
-Also disable partial instancing tests for now, cause the command option
is wrapped by experimental_api
2023-08-08 08:44:31 -07:00
Qunxin Liu
32cfa37e2e
[instancer] command line support for partial instancing
...
-Also updated hb_subset_input_set_axis_range (), so user can define
default value as well
2023-08-07 14:37:13 -07:00
Garret Rieger
3021b2dbe2
[subset] change glyph mapping api to return a mutable map.
...
Maintains consistency with our other set based api methods.
2023-05-05 05:57:05 +00:00
Garret Rieger
98e73192f4
[subset] Add command line flag to provide a gid mapping.
2023-05-04 22:20:06 +00:00
Garret Rieger
90356eb226
[subset] Note --no-layout-closure is only for GSUB.
2023-04-14 15:12:41 -06:00
Garret Rieger
14b9d8d534
[subset] add --no-layout-closure flag.
...
Disables layout glyph closure. Fixes #4192 .
2023-04-14 15:12:41 -06:00
Behdad Esfahbod
6de9d2b89f
[justify] Rename hb-view --width to hb-view --justify-to
2023-03-01 14:32:06 -07:00
Behdad Esfahbod
25c66d633d
[justify] Wrap in HB_EXPERIMENTAL_API
2023-03-01 14:23:12 -07:00
Behdad Esfahbod
aa10deaf42
[justify] Print default buffer width in hb-shape --width=-1
2023-03-01 14:23:12 -07:00
Behdad Esfahbod
b937edfb14
[justify] Add min/max target_width
...
Speeds up solving when some slack available.
2023-03-01 14:23:12 -07:00
Behdad Esfahbod
6e483c4061
[shape] Add hb_shape_justify() and hb-view --width
2023-03-01 14:23:12 -07:00
Behdad Esfahbod
921eca3e79
[autotools] Fix hb-info chafa build
2023-02-24 17:07:01 -07:00
Behdad Esfahbod
40fa046cf3
[hb-info] Declare a variable unused
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/4115
2023-02-12 10:54:46 -07:00
Behdad Esfahbod
aef002e0d9
[embolden] Add in-place option
...
Adds --font-grade to hb-view and hb-shape.
2023-02-07 11:52:25 -07:00
Behdad Esfahbod
e39104ba19
[font/util] Add emboldening API, --font-bold
...
Needs documentation.
2023-02-02 15:51:22 -07:00
Behdad Esfahbod
39d50008f8
[hb-info] Format
2023-01-25 12:53:50 -07:00
Behdad Esfahbod
4e2267b729
[hb-info] Add --get-meta
2023-01-25 12:51:53 -07:00
Behdad Esfahbod
42ed6abb6a
[hb-info] Add --list-meta
2023-01-25 12:47:16 -07:00
Behdad Esfahbod
167443e9fc
[hb-info] Respect HB_CHAFA=0
2023-01-25 11:37:07 -07:00
Behdad Esfahbod
87df84c386
[hb-info] Fix copyright header
2023-01-25 11:37:07 -07:00
Behdad Esfahbod
192361cb4d
[hb-info] Show color swatch only if printing to terminal
2023-01-24 17:05:38 -07:00
Behdad Esfahbod
817ec182eb
[hb-info] Format
2023-01-24 17:02:08 -07:00
Behdad Esfahbod
66ddeb0737
[hb-info] Change Chafa repeat to 16
2023-01-24 17:01:01 -07:00
Behdad Esfahbod
7a29ded169
[hb-info] Render colors in --list-palette
...
Uses chafa if available
2023-01-24 16:59:44 -07:00
Behdad Esfahbod
279f13c187
[hb-shape] Write trace output to stderr
2023-01-24 11:50:59 -07:00
Behdad Esfahbod
161d8f9d26
[util] Rename a variable
2023-01-24 11:48:10 -07:00