Commit Graph
17690 Commits
Author SHA1 Message Date
Khaled Hosny 6898a6048c [meson] Update wrap files
This also updates the meson version on Windows cross-build jobs as wraps
now requires newer versions of meson. We still require only meson 0.55.0
for building HarfBuzz, but building with fallback wraps is allowed
to require newer meson.
2024-11-09 13:17:58 +02:00
Qunxin Liu b5ed7846d6 [subset-serialize] release discarded objects 2024-11-08 18:06:35 -07:00
Qunxin Liu 622e9c33c3 [instancer] fix for incorrect offset calculation when we have gvar padding 2024-11-06 12:38:00 -07:00
Khaled Hosny 9ef44a2d67 10.1.0 10.1.0 2024-11-05 08:04:49 +02:00
Khaled Hosny a9b76edca6 [ci] Pin Python version to 3.12 on macOS
It seems that lxml does not have 3.13 binary wheels (for macOS at
least), and building it from source is failing.
2024-11-05 02:13:11 +02:00
Behdad Esfahbod c85a6c2a22 [cairo] Respect HB_NO_VAR
Fixes https://github.com/harfbuzz/harfbuzz/issues/4924
2024-11-04 17:34:02 -05:00
dependabot[bot] 5e32b5ca8f Bump actions/setup-python from 5.2.0 to 5.3.0
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5.2.0 to 5.3.0.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/f677139bbe7f9c59b41e40162b753c062f5d49a3...0b93645e9fea7318ecaed2b359559ac225c90a2b)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-28 08:48:18 -06:00
dependabot[bot] 4148c8d4e1 Bump actions/checkout from 4.2.1 to 4.2.2
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.1 to 4.2.2.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871...11bd71901bbe5b1630ceea73d27597364c9af683)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-28 08:48:05 -06:00
dependabot[bot] f8e0ba5eff Bump github/codeql-action from 3.26.12 to 3.27.0
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.26.12 to 3.27.0.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/c36620d31ac7c881962c3d9dd939c40ec9434f2b...662472033e021d55d94146f66f6058822b0b39fd)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-28 08:47:53 -06:00
Behdad Esfahbod 9974a66169 [icu] Make it build with ICU 76
Fixes https://github.com/harfbuzz/harfbuzz/issues/4915
2024-10-27 16:14:53 -07:00
Garret Rieger 392581be01 [subest] get benchmark subset working again. 2024-10-24 15:42:31 -06:00
Qunxin Liu e5139c51aa bug fix in hashmap get_with_hash() 2024-10-21 15:46:06 -06:00
Behdad Esfahbod 825bc19643 [perf] Simplify meson.build
Fixes https://github.com/harfbuzz/harfbuzz/issues/4896
2024-10-16 01:56:17 -06:00
Behdad Esfahbod 35f67618e8 Merge pull request #4895 from harfbuzz/coretext-font
Coretext font
2024-10-15 15:27:25 -06:00
Behdad Esfahbod de1a1e27d4 [coretext-font] Implement get_glyph_v_origin()
For a font without vertical metrics, I'm getting different
values from ot/ft. But that's expected, since in ot we just
implemented the same heuristics as ft.
2024-10-15 14:58:13 -06:00
Behdad Esfahbod 786097029e [coretext-font] Implement get_glyph_v_advances 2024-10-15 14:58:13 -06:00
Behdad Esfahbod e1026a2252 [coretext-font] Implement get_variation_glyph()
Not sure if I got it right, but *seems* to work.
2024-10-15 14:58:13 -06:00
Behdad Esfahbod d44cc8a1fc [coretext-font] Implement get_glyph_name() 2024-10-15 14:58:13 -06:00
Behdad Esfahbod 0ce67f56dd [coretext-font] Implement font_get_h_metrics 2024-10-15 14:58:13 -06:00
Behdad Esfahbod e31ea830c8 [ft] Try using a ref-counted ft_library
https://github.com/harfbuzz/harfbuzz/pull/4895#issuecomment-2412348792
2024-10-15 14:58:13 -06:00
Behdad Esfahbod 52becf1c6d [test] Fix a leak 2024-10-15 14:58:13 -06:00
Behdad Esfahbod a8360b7e95 [perf] Respect new envvar HB_FACE_LOADER 2024-10-15 14:58:13 -06:00
Behdad Esfahbod c224178a09 [perf] Add hb-benchmark.hh 2024-10-15 14:58:13 -06:00
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.
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 12fc715dd6 [ft] Add hb_ft_face_create_from_file_or_fail()
New API:
+hb_ft_face_create_from_file_or_fail()
2024-10-15 14:58:13 -06:00
Behdad Esfahbod 89c83b5b08 [coretext] Add hb_coretext_face_create_from_file_or_fail()
New API hb_coretext_face_create_from_file_or_fail()
2024-10-15 13:06:51 -06:00
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](https://github.com/github/codeql-action/compare/6db8d6351fd0be61f9ed8ebd12ccd35dcec51fea...c36620d31ac7c881962c3d9dd939c40ec9434f2b)

---
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>
2024-10-14 16:08:28 -06:00
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](https://github.com/actions/upload-artifact/compare/50769540e7f4bd5e21e526ee35c689e35e0d6874...b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882)

---
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>
2024-10-14 16:08:18 -06:00
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](https://github.com/actions/checkout/compare/d632683dd7b4114ad314bca15554477dd762a938...eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-14 16:08:07 -06:00
Behdad Esfahbod b12acba494 [face] Add hb_face_create_from_file_or_fail()
New API:
+ hb_face_create_from_file_or_fail()
2024-10-13 13:04:29 -06:00
Behdad Esfahbod 2437fd883a [face] Add hb_face_create_or_fail()
New API:
+ hb_face_create_or_fail()
2024-10-13 13:04:29 -06:00
Behdad Esfahbod 2166a46ad3 [coretext] Don't set CoreText funcs on new CoreText fonts 2024-10-13 13:04:29 -06:00
Behdad Esfahbod 62ae9fbd6a [coretext-font] Implement get_glyph_from_name 2024-10-13 13:04:29 -06:00
Behdad Esfahbod b5e9f2cb2b [coretext-font] Implement get_glyph_extents 2024-10-13 13:04:29 -06:00
Behdad Esfahbod 8db2997e4e [coretext] Configure hb_coretext_font_create() with CT font funcs
Not sure if this is a good idea...
2024-10-13 13:04:29 -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 064b24177b [coretext] Rename hb-coretext.cc to hb-coretext-shape.cc 2024-10-13 13:04:29 -06:00
Behdad Esfahbod e1269215f9 Revert "Fix a compiler warning"
This reverts commit 377e3c67a4.

https://github.com/harfbuzz/harfbuzz/commit/377e3c67a435932f9da0e4f9baec1c34f4f45a15#commitcomment-147888850
2024-10-13 13:01:09 -06:00
Behdad Esfahbod 755929c48d Fix more compiler warnings
In case FreeType is not available.
2024-10-12 20:08:32 -06:00
Behdad Esfahbod 377e3c67a4 Fix a compiler warning 2024-10-12 20:06:54 -06:00
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.
2024-10-10 14:47:57 -06:00
Behdad Esfahbod 1a4bdd699a [font] Change fallback y_advance sign
Ouch.
2024-10-10 14:16:14 -06:00
Khaled Hosny 9c00255b4a [ci] Fix Codecov upload
Setup a repository token and use it, this seems to be required now.
2024-10-10 14:20:26 +03:00
Khaled Hosny 6a25df24b0 [COLR] Add and use get_clip_list () 2024-10-09 10:23:12 -06:00
Khaled Hosny 5462978c90 [COLR] Lets see if this makes CIFUZZ any happier 2024-10-09 10:23:12 -06:00
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.
2024-10-08 09:31:29 -06:00