Behdad Esfahbod
a8360b7e95
[perf] Respect new envvar HB_FACE_LOADER
4 months ago
Behdad Esfahbod
c224178a09
[perf] Add hb-benchmark.hh
4 months ago
Behdad Esfahbod
2dc6334133
[tests] Remove invalid tests from collections.tests
...
Previously we silently returned the empty face if face_index
was out of range. With util/ now using the new API
hb_font_face_create_from_file_or_fail(), that returns a nullptr
face now. So, adjust tests.
4 months ago
Behdad Esfahbod
734ba5ab48
[hb-info] Fix font face number recording for .dfont
4 months ago
Behdad Esfahbod
67591f8511
[util] Add --face-loader
...
Currently crashes with ft. Investigating.
4 months ago
Behdad Esfahbod
75d168cbf4
[util] Rename a variable
4 months ago
Behdad Esfahbod
aa933abb76
[util] Use hb_face_create_from_file_or_fail()
4 months ago
Behdad Esfahbod
12fc715dd6
[ft] Add hb_ft_face_create_from_file_or_fail()
...
New API:
+hb_ft_face_create_from_file_or_fail()
4 months ago
Behdad Esfahbod
89c83b5b08
[coretext] Add hb_coretext_face_create_from_file_or_fail()
...
New API hb_coretext_face_create_from_file_or_fail()
4 months ago
dependabot[bot]
5f8b77d195
Bump github/codeql-action from 3.26.11 to 3.26.12
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 3.26.11 to 3.26.12.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](6db8d6351f...c36620d31a
)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
4 months ago
dependabot[bot]
bb5a8284e0
Bump actions/upload-artifact from 4.4.0 to 4.4.3
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 4.4.0 to 4.4.3.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](50769540e7...b4b15b8c7c
)
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
4 months ago
dependabot[bot]
ea3b6c60ba
Bump actions/checkout from 4.2.0 to 4.2.1
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](d632683dd7...eef61447b9
)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
4 months ago
Behdad Esfahbod
b12acba494
[face] Add hb_face_create_from_file_or_fail()
...
New API:
+ hb_face_create_from_file_or_fail()
4 months ago
Behdad Esfahbod
2437fd883a
[face] Add hb_face_create_or_fail()
...
New API:
+ hb_face_create_or_fail()
4 months ago
Behdad Esfahbod
2166a46ad3
[coretext] Don't set CoreText funcs on new CoreText fonts
4 months ago
Behdad Esfahbod
62ae9fbd6a
[coretext-font] Implement get_glyph_from_name
4 months ago
Behdad Esfahbod
b5e9f2cb2b
[coretext-font] Implement get_glyph_extents
4 months ago
Behdad Esfahbod
8db2997e4e
[coretext] Configure hb_coretext_font_create() with CT font funcs
...
Not sure if this is a good idea...
4 months ago
Behdad Esfahbod
8a805271a1
[coretext] Start implementing CoreText font-funcs
...
Does nominal glyph mapping, horiz advances, and draw so far.
4 months ago
Behdad Esfahbod
064b24177b
[coretext] Rename hb-coretext.cc to hb-coretext-shape.cc
4 months ago
Behdad Esfahbod
e1269215f9
Revert "Fix a compiler warning"
...
This reverts commit 377e3c67a4
.
377e3c67a4 (commitcomment-147888850)
4 months ago
Behdad Esfahbod
755929c48d
Fix more compiler warnings
...
In case FreeType is not available.
4 months ago
Behdad Esfahbod
377e3c67a4
Fix a compiler warning
4 months ago
Behdad Esfahbod
ab36089924
[CFF] Increase max op num limit
...
This actually counts operands too, not just operators.
In a big variable-font design-space, each blend can easily take
a dozen ops or more. I was sent a font for which this limit
was hit. Increase by 20x for now.
4 months ago
Behdad Esfahbod
1a4bdd699a
[font] Change fallback y_advance sign
...
Ouch.
4 months ago
Khaled Hosny
9c00255b4a
[ci] Fix Codecov upload
...
Setup a repository token and use it, this seems to be required now.
4 months ago
Khaled Hosny
6a25df24b0
[COLR] Add and use get_clip_list ()
4 months ago
Khaled Hosny
5462978c90
[COLR] Lets see if this makes CIFUZZ any happier
4 months ago
Behdad Esfahbod
008505e1c4
[COLR] Pepper some hb_barrier()'s around
...
The version is a minor version (because uint16), as such
version > 1 should be considered as supporting version 1
data.
4 months ago
Khaled Hosny
cec95a2d26
Try to fix heap-buffer-overflow
4 months ago
Khaled Hosny
4d1f6e049c
[COLR] Enable COLRv0 support in get_extents()
...
paint_glyph() supports COLRv0 but this code is never reached because of
the early return if version is not 1. This early return seems to be from
before COLRv0 extents were supported.
4 months ago
Behdad Esfahbod
4587e08a46
[VarStoreInstancer] Fix null deref
...
Should fix this hopefully:
https://github.com/harfbuzz/harfbuzz/actions/runs/11203732283/job/31141330056?pr=4885
4 months ago
Behdad Esfahbod
e8de8d88df
[CONFIG] Remove unused HB_NDEBUG
4 months ago
dependabot[bot]
50d67b202a
Bump codecov/codecov-action from 4.5.0 to 4.6.0
...
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action ) from 4.5.0 to 4.6.0.
- [Release notes](https://github.com/codecov/codecov-action/releases )
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md )
- [Commits](e28ff129e5...b9fd7d16f6
)
---
updated-dependencies:
- dependency-name: codecov/codecov-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
4 months ago
dependabot[bot]
d9c029755c
Bump github/codeql-action from 3.26.9 to 3.26.11
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 3.26.9 to 3.26.11.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](461ef6c76d...6db8d6351f
)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
4 months ago
Julien Nabet
e157205499
unused-parameter in test/fuzzing/hb-draw-fuzzer.cc
...
../test/fuzzing/hb-draw-fuzzer.cc:19:28: error: unused parameter 'dfuncs' [-Werror,-Wunused-parameter]
_move_to (hb_draw_funcs_t *dfuncs, void *draw_data_,
^
../test/fuzzing/hb-draw-fuzzer.cc:22:10: error: unused parameter 'user_data' [-Werror,-Wunused-parameter]
void *user_data)
^
../test/fuzzing/hb-draw-fuzzer.cc:31:28: error: unused parameter 'dfuncs' [-Werror,-Wunused-parameter]
_line_to (hb_draw_funcs_t *dfuncs, void *draw_data_,
^
../test/fuzzing/hb-draw-fuzzer.cc:34:10: error: unused parameter 'user_data' [-Werror,-Wunused-parameter]
void *user_data)
^
../test/fuzzing/hb-draw-fuzzer.cc:44:33: error: unused parameter 'dfuncs' [-Werror,-Wunused-parameter]
_quadratic_to (hb_draw_funcs_t *dfuncs, void *draw_data_,
^
../test/fuzzing/hb-draw-fuzzer.cc:46:15: error: unused parameter 'control_x' [-Werror,-Wunused-parameter]
float control_x, float control_y,
^
../test/fuzzing/hb-draw-fuzzer.cc:46:32: error: unused parameter 'control_y' [-Werror,-Wunused-parameter]
float control_x, float control_y,
^
../test/fuzzing/hb-draw-fuzzer.cc:48:15: error: unused parameter 'user_data' [-Werror,-Wunused-parameter]
void *user_data)
^
../test/fuzzing/hb-draw-fuzzer.cc:58:29: error: unused parameter 'dfuncs' [-Werror,-Wunused-parameter]
_cubic_to (hb_draw_funcs_t *dfuncs, void *draw_data_,
^
../test/fuzzing/hb-draw-fuzzer.cc:60:11: error: unused parameter 'control1_x' [-Werror,-Wunused-parameter]
float control1_x, float control1_y,
^
../test/fuzzing/hb-draw-fuzzer.cc:60:29: error: unused parameter 'control1_y' [-Werror,-Wunused-parameter]
float control1_x, float control1_y,
^
../test/fuzzing/hb-draw-fuzzer.cc:61:11: error: unused parameter 'control2_x' [-Werror,-Wunused-parameter]
float control2_x, float control2_y,
^
../test/fuzzing/hb-draw-fuzzer.cc:61:29: error: unused parameter 'control2_y' [-Werror,-Wunused-parameter]
float control2_x, float control2_y,
^
../test/fuzzing/hb-draw-fuzzer.cc:63:11: error: unused parameter 'user_data' [-Werror,-Wunused-parameter]
void *user_data)
^
../test/fuzzing/hb-draw-fuzzer.cc:73:31: error: unused parameter 'dfuncs' [-Werror,-Wunused-parameter]
_close_path (hb_draw_funcs_t *dfuncs, void *draw_data_,
^
../test/fuzzing/hb-draw-fuzzer.cc:75:13: error: unused parameter 'user_data' [-Werror,-Wunused-parameter]
void *user_data)
^
16 errors generated.
4 months ago
Julien Nabet
8de0d91166
missing-field-initializers in test/api/test-ot-face.c
...
FAILED: test/fuzzing/hb-shape-fuzzer.p/hb-shape-fuzzer.cc.o clang++ -Itest/fuzzing/hb-shape-fuzzer.p -Itest/fuzzing -I../test/fuzzing -I. -I.. -Isrc -I../src -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c++11 -fno-exceptions -O3 -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -DHAVE_CONFIG_H -Wall -Wextra -Werror -MD -MQ test/fuzzing/hb-shape-fuzzer.p/hb-shape-fuzzer.cc.o -MF test/fuzzing/hb-shape-fuzzer.p/hb-shape-fuzzer.cc.o.d -o test/fuzzing/hb-shape-fuzzer.p/hb-shape-fuzzer.cc.o -c ../test/fuzzing/hb-shape-fuzzer.cc In file included from ../test/fuzzing/hb-shape-fuzzer.cc:9: ../test/fuzzing/../api/test-ot-face.c:47:34: error: missing field 'y_bearing' initializer [-Werror,-Wmissing-field-initializers]
hb_glyph_extents_t extents = {0};
^
../test/fuzzing/../api/test-ot-face.c:85:55: error: missing field 'enable' initializer [-Werror,-Wmissing-field-initializers]
hb_aat_layout_feature_selector_info_t setting = {0};
^
2 errors generated.
4 months ago
David Corbett
b6196986d7
[USE] Update the data files
...
This uses the data files from
<e00698c07a/USE
>.
4 months ago
David Corbett
31b22016a2
[ot-tags] Update IANA and OT language registries
4 months ago
Julien Nabet
5772f4ffce
missing-field-initializers in main.cc
...
FAILED: src/main.p/main.cc.o
clang++ -Isrc/main.p -Isrc -I../src -I. -I.. -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c++11 -fno-exceptions -O3 -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -DHAVE_CONFIG_H -Wall -Wextra -Werror -pthread -Wno-non-virtual-dtor -UNDEBUG -MD -MQ src/main.p/main.cc.o -MF src/main.p/main.cc.o.d -o src/main.p/main.cc.o -c ../src/main.cc
../src/main.cc:220:33: error: missing field 'y_bearing' initializer [-Werror,-Wmissing-field-initializers]
hb_glyph_extents_t extents = {0};
^
../src/main.cc:270:36: error: missing field 'y_bearing' initializer [-Werror,-Wmissing-field-initializers]
hb_glyph_extents_t extents = {0};
^
2 errors generated.
5 months ago
Julien Nabet
18f1d9121e
missing-field-initializers in hb-draw.h
...
With clang build, I got:
FAILED: test/api/test-draw.p/test-draw.c.o
clang -Itest/api/test-draw.p -Itest/api -I../test/api -I. -I.. -Isrc -I../src -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/freetype2 -I/usr/include/libpng16 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O3 -DHAVE_CONFIG_H -Wall -Wextra -Werror -pthread -MD -MQ test/api/test-draw.p/test-draw.c.o -MF test/api/test-draw.p/test-draw.c.o.d -o test/api/test-draw.p/test-draw.c.o -c ../test/api/test-draw.c
../test/api/test-draw.c:920:26: error: missing field 'reserved4' initializer [-Werror,-Wmissing-field-initializers]
hb_draw_state_t st = HB_DRAW_STATE_DEFAULT;
^
../src/hb-draw.h:73:71: note: expanded from macro 'HB_DRAW_STATE_DEFAULT'
define HB_DRAW_STATE_DEFAULT {0, 0.f, 0.f, 0.f, 0.f, {0.}, {0.}, {0.}}
5 months ago
Behdad Esfahbod
c1c0e82e3f
Revert "Bump setuptools from 73.0.1 to 75.1.0 in /.ci"
...
This reverts commit a87fa89b4e
.
Build was failing in linux-ci.
5 months ago
dependabot[bot]
4aad43c826
Bump github/codeql-action from 3.26.8 to 3.26.9
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 3.26.8 to 3.26.9.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](294a9d9291...461ef6c76d
)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
5 months ago
dependabot[bot]
a891445449
Bump actions/checkout from 4.1.7 to 4.2.0
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 4.1.7 to 4.2.0.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](692973e3d9...d632683dd7
)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
5 months ago
dependabot[bot]
a87fa89b4e
Bump setuptools from 73.0.1 to 75.1.0 in /.ci
...
Bumps [setuptools](https://github.com/pypa/setuptools ) from 73.0.1 to 75.1.0.
- [Release notes](https://github.com/pypa/setuptools/releases )
- [Changelog](https://github.com/pypa/setuptools/blob/main/NEWS.rst )
- [Commits](https://github.com/pypa/setuptools/compare/v73.0.1...v75.1.0 )
---
updated-dependencies:
- dependency-name: setuptools
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
5 months ago
dependabot[bot]
fa79b51d13
Bump fonttools from 4.53.1 to 4.54.1 in /.ci
...
Bumps [fonttools](https://github.com/fonttools/fonttools ) from 4.53.1 to 4.54.1.
- [Release notes](https://github.com/fonttools/fonttools/releases )
- [Changelog](https://github.com/fonttools/fonttools/blob/main/NEWS.rst )
- [Commits](https://github.com/fonttools/fonttools/compare/4.53.1...4.54.1 )
---
updated-dependencies:
- dependency-name: fonttools
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
5 months ago
Behdad Esfahbod
c7ef6a2ed5
Remove the hack re variation-selectors
...
Instead of abusing an unused Gen_Cat value, use existing facilities
to remember variation selectors.
Addresses
https://github.com/RazrFalcon/rustybuzz/pull/134#issuecomment-2374894164
5 months ago
Khaled Hosny
a1d9bfe628
10.0.1
5 months ago
Behdad Esfahbod
527e60b015
[morx] Relax sanitizing
...
Ignore claimed ChainSubtable length and only sanitize against
the whole table.
Works around what seems to be a broken LookupFormat0 in a
Noncontextual subtable in GeezaPro on MacOS 15.0
Fixes https://github.com/harfbuzz/harfbuzz/issues/4873
5 months ago
Behdad Esfahbod
867366ccf1
[test] Add GeezaPro tests for MacOS 15.0
5 months ago