Andres Salomon
c622c6b883
[font] update the license url for TestGVAREight.ttf
...
The url in the exif data incorrectly links to a proprietary license. However,
permission was granted for distribution under Apache-2 as part of another project,
so link to that project's license instead.
fixes #4062
2023-01-25 09:27:49 -07:00
Matthias Clasen
eb0a025e49
Add a test for glyph names
...
This verifies that hb_font_get_glyph_name
returns false for nonexisting glyphs.
2023-01-24 21:35:04 -07:00
Behdad Esfahbod
1b143b0f0c
[font] Docs
2023-01-24 18:34:04 -07:00
Behdad Esfahbod
64ed03c9be
[cff1] Return no name for out-of-range glyph IDs
...
Was returning .notdef before.
2023-01-24 18:33:34 -07:00
Matthias Clasen
c89aebc40b
hb-font: Document length limit for glyph names
...
This is useful information for users of the
hb_font_get_glyph_name() API.
2023-01-24 18:29:06 -07:00
Matthias Clasen
dd64266ea4
Add a test for glyph extents
...
This verifies a recent fix for COLRv1 returning
0,0,-1,1 for extents of non-painting glyphs.
2023-01-24 18:08:22 -07:00
Qunxin Liu
73e6f6cc88
[instancer] enable the missing test
2023-01-24 17:28:51 -07:00
Qunxin Liu
27f72f0deb
[instancer] avoid double free for compiled glyph bytes
...
also increase the HB_GLYF_MAX_POINTS limit to 20000 cause the test file has a
.notdef glyph which is a composite glyph and has 10176 points after
get_points() call
2023-01-24 17:28:51 -07:00
Matthias Clasen
ac969fffa2
Update meson summary
...
Include builtin font callbacks and Cairo integration
in the configuration summary.
2023-01-24 17:08:51 -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
b684c6edd4
[hb-cairo] Add hb_cairo_context_t
2023-01-24 12:21:12 -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
Behdad Esfahbod
68a790261c
[util] If --glyphs doesn't have positions, use glyph advances
...
Such that eg --glyphs=10 works.
2023-01-24 11:44:53 -07:00
Behdad Esfahbod
91a174f151
[hb-view] Hide --annotate and make it alias for --show-extents
2023-01-24 11:27:35 -07:00
Behdad Esfahbod
8cfb0ed072
[hb-view] --annotate enables --show-extents
2023-01-24 11:24:31 -07:00
Behdad Esfahbod
20fcf5c5b8
[hb-view] Add --show-extents
2023-01-24 11:22:55 -07:00
Behdad Esfahbod
72e13fff65
[COLRv1] Handle void extents
2023-01-24 11:05:38 -07:00
Behdad Esfahbod
20318feddf
[COLRv1] Don't return extents if glyph has no paint
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/4068
2023-01-24 11:04:10 -07:00
Behdad Esfahbod
32afdcdb46
[hb-buffer-deserialize-text-unicode] Relax parsing
2023-01-23 21:10:11 -07:00
Behdad Esfahbod
328ee9b4ad
[hb-buffer-deserialize-text-unicodes] Rename
2023-01-23 21:06:27 -07:00
Behdad Esfahbod
bc596b8cca
[buffer-deserialize-text-unicode] Simplify
2023-01-23 21:03:59 -07:00
Behdad Esfahbod
649973a316
Fix build
2023-01-23 21:02:14 -07:00
Behdad Esfahbod
f798cf225e
[util] Don't require final ']' in --glyphs
2023-01-23 21:00:38 -07:00
Behdad Esfahbod
4268283e54
[buffer-deserialize-text] Accept initial comma
2023-01-23 20:57:56 -07:00
Behdad Esfahbod
2c29b81e7f
[buffer-deserialize-text] Separate glyphs / unicodes machines
2023-01-23 20:57:56 -07:00
Behdad Esfahbod
d0355eb4bd
[buffer-deserialize] Parse whole items at a time
...
Previous logic would fail if char buffer was partial.
2023-01-23 20:57:56 -07:00
Matthias Clasen
f65b04c17c
Tweak wording
2023-01-23 19:58:14 -07:00
Matthias Clasen
7e01976bcc
[hb-paint] Add some details to the docs
2023-01-23 19:58:14 -07:00
Garret Rieger
e4fff64ce3
[repacker] check duplicate() for success.
...
Fixes fuzzer testcase https://oss-fuzz.com/testcase-detail/5475787333828608 .
2023-01-23 18:37:13 -07:00
Behdad Esfahbod
6b72a4ddb0
Revert "[sanitize] Simplify(?) check_range"
...
This reverts commit af0b1ef8a7
.
2023-01-23 18:36:04 -07:00
Behdad Esfahbod
00cf322e23
Merge pull request #4046 from harfbuzz/hb-features-docs
...
[doc] Try to fix generating hb-features docs
2023-01-23 16:06:26 -07:00
Khaled Hosny
699485b349
[meson] Further simplify generating hb-features.h
2023-01-24 00:15:48 +02:00
Khaled Hosny
2486d6d22f
[meson] Reduce repetitions
2023-01-24 00:15:48 +02:00
Khaled Hosny
12f2ecbddb
[doc] Generate hb-supported-features.h
...
See inline comment.
2023-01-24 00:15:48 +02:00
Khaled Hosny
0bbd3360ee
[doc] Try to fix generating hb-features docs
...
Move it to a separate section, since hb-common says include hb.h, while
we want to include hb-features.h here.
This still does not fix generating documentation of undefined macros
(e.g. HB_HAS_GDI since we build docs on Linux).
2023-01-24 00:12:06 +02:00
Behdad Esfahbod
af0b1ef8a7
[sanitize] Simplify(?) check_range
2023-01-23 14:31:10 -07:00
Behdad Esfahbod
fe94c760e1
[algs] Build fix for clang and __builtin_mul_overflow
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/4066
2023-01-23 14:05:28 -07:00
Khaled Hosny
1cf61f3053
[meson] Fix build with -Dgobject=disabled
2023-01-23 16:26:35 +02:00
Behdad Esfahbod
2b87af808b
[hb-info] Typo
2023-01-22 17:37:51 -07:00
Behdad Esfahbod
fe22afe7f9
[hb-info] Simplify
2023-01-22 16:47:50 -07:00
Khaled Hosny
eba5762919
Another try
2023-01-22 16:30:34 -07:00
Khaled Hosny
37ab12a372
[util] Try to fix hb-info build
2023-01-22 16:30:34 -07:00
Behdad Esfahbod
5880ab0603
[hb-info] More build fix try
2023-01-22 16:21:43 -07:00
Behdad Esfahbod
d76ef46d0a
Try to fix autotools build
2023-01-22 16:17:39 -07:00
Behdad Esfahbod
6e58598520
[hb-info] Subfamily
2023-01-22 15:22:30 -07:00
Behdad Esfahbod
4142a460af
[hb-info] Add --list-baselines
2023-01-22 15:11:50 -07:00