Commit graph

17785 commits

Author SHA1 Message Date
Behdad Esfahbod
ed37725e00 [aat] Micro-optimize get_class 2025-02-03 12:59:58 +00:00
Behdad Esfahbod
91572945bb [aat] More delambda
Again, this was costly.
2025-02-03 11:28:50 +00:00
Behdad Esfahbod
556eb02977 [aat] Remove a lambda
This lambda was added to "simplify" the logic. But has a lot of overhead.
2025-02-03 11:28:50 +00:00
Behdad Esfahbod
d9a25bc4ee [aat] Allocate caches together
No separate malloc.
2025-02-03 11:28:50 +00:00
Behdad Esfahbod
7b44a94a55 [aat] Shrink cache to 256 bytes per subtable 2025-02-03 11:28:50 +00:00
Behdad Esfahbod
b89ab7d0fb [aat] Shrink the class cache to be 512 bytes instead of 1kb 2025-02-03 11:28:50 +00:00
Behdad Esfahbod
4fb0ac7728 [aat] Minor simplify 2025-02-03 11:28:50 +00:00
Behdad Esfahbod
832f199607 [aat] Remove set-digest
Now that we have a class cache, this was just speeding things down.
2025-02-03 11:28:50 +00:00
Behdad Esfahbod
0e13e78153 [aat] Add a class-cache to the machine
Speeds up Times.ttc benchmark by 20%.
2025-02-03 11:28:50 +00:00
dependabot[bot]
3839e5fd59 Bump fonttools from 4.55.6 to 4.55.8 in /.ci
Bumps [fonttools](https://github.com/fonttools/fonttools) from 4.55.6 to 4.55.8.
- [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.55.6...4.55.8)

---
updated-dependencies:
- dependency-name: fonttools
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-03 04:28:16 -07:00
Tor Arne Vestbø
04b2006fc9 Remove outdated documentation note about CT operating in 96 DPI
As extensively discussed and documented in #1484, Core Text does
not operate in 96 DPI. Core Text doesn't actually have a concept of
DPI internally, as it doesn't rasterize anything by itself, it just
generates vector paths that get passed along to Core Graphics.

In practice this means Core Text operates in the classical macOS
logical DPI of 72, with one typographic point corresponding to one
point in the Core Graphics coordinate system, which for a normal
bitmap context then corresponds to one pixel -- or two pixels for
a "retina" context with a 2x scale transform.

As of f401f85a5a, we no longer apply
any assumptions in HB about the target DPI being different than the
72 DPI used by CT, for example to account for the Web's standard of
96 DPI, so let's remove the documentation that still indicated this
was necessary.
2025-02-03 04:28:02 -07:00
Khaled Hosny
bbb9e56365 [ci] Pin GitHub workflows to Python 3.12 for now
Some dependencies seem to fail to install on Python 3.13.
2025-02-02 23:14:03 +02:00
Behdad Esfahbod
d8d0987feb [benchmark-shape] Remove variable-font test set
It doesn't really affect shaping much. Kill it.
2025-02-02 18:08:09 +00:00
Behdad Esfahbod
138448487e [aat] Typo 2025-02-02 11:56:01 +00:00
Behdad Esfahbod
f5e50890d0 [open-type] Another tweak to cmp()
Again, unlikely that compiler cares.
2025-02-02 11:40:27 +00:00
Behdad Esfahbod
c68df817a6 [open-type] Minor tweak to cmp()
Remove codepath that was never taken.
2025-02-02 11:39:01 +00:00
Behdad Esfahbod
9bd75952e5 [benchmark-shape] Compare diff shapers, not font funcs 2025-02-02 11:14:49 +00:00
Behdad Esfahbod
66bb94fe46 [set-digest] Tune back to starting with 4
Make Amiri slightly slower again, but works better for AAT fonts
I tested.
2025-02-02 08:40:30 +00:00
Behdad Esfahbod
9fd855ed55 [set-digest] Tune a bit more
Saves another 2% on Amiri benchmark.
2025-02-02 07:57:50 +00:00
Behdad Esfahbod
880b92ed6e [set-digest] Fix build on Linux 2025-02-02 07:43:33 +00:00
Behdad Esfahbod
92f13bbdd7 [set-digest] Inline combiner
Instead of defining one digest and then combining three of them at
different shifts, inline the code The compiler can optimize it better.

3% speedup with Amiri benchmark.
2025-02-01 19:11:20 +00:00
Behdad Esfahbod
c4c8eb4f8c [algs] Rename a macro
Clashes with Apple simd/simd.h
2025-02-01 15:58:47 +00:00
Behdad Esfahbod
b394ab39e9 [test-buffer] Add code for testing end_ptr 2025-02-01 14:26:32 +00:00
Behdad Esfahbod
9ba286de08 [ot-shape] Micro-optimize ::equal
For two integers, it's faster to compare them directly.
2025-02-01 14:25:13 +00:00
dependabot[bot]
6d8035a99c Bump meson from 1.6.1 to 1.7.0 in /.ci
Bumps [meson](https://github.com/mesonbuild/meson) from 1.6.1 to 1.7.0.
- [Release notes](https://github.com/mesonbuild/meson/releases)
- [Commits](https://github.com/mesonbuild/meson/compare/1.6.1...1.7.0)

---
updated-dependencies:
- dependency-name: meson
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-27 14:18:50 +02:00
dependabot[bot]
adc5ef1e09 Bump codecov/codecov-action from 5.1.2 to 5.3.1
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 5.1.2 to 5.3.1.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](1e68e06f1d...13ce06bfc6)

---
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>
2025-01-27 14:18:08 +02:00
dependabot[bot]
c2fa380391 Bump github/codeql-action from 3.28.1 to 3.28.5
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.28.1 to 3.28.5.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](b6a472f63d...f6091c0113)

---
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>
2025-01-27 14:16:59 +02:00
dependabot[bot]
721470f564 Bump fonttools from 4.55.3 to 4.55.6 in /.ci
Bumps [fonttools](https://github.com/fonttools/fonttools) from 4.55.3 to 4.55.6.
- [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.55.3...4.55.6)

---
updated-dependencies:
- dependency-name: fonttools
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-27 14:16:22 +02:00
Behdad Esfahbod
9ef009f597 [test] Fix test
Broken by previous commit.
https://github.com/harfbuzz/harfbuzz/issues/5020#issuecomment-2613597379
2025-01-24 16:37:12 -07:00
Behdad Esfahbod
6be66b0ef2 [ft/coretext] Fail setting font-funcs gracefully
Fixes https://github.com/harfbuzz/harfbuzz/issues/5020
2025-01-24 16:26:54 -07:00
Behdad Esfahbod
4df11621ce [VARC] Fix variable binding
Ouch.
2025-01-24 05:00:05 -07:00
Behdad Esfahbod
2fa9ccee61 [VARC] Simplify 2025-01-23 23:14:53 -07:00
Behdad Esfahbod
2d2418ebac [VARC] Avoid float div-by-zero 2025-01-23 23:14:45 -07:00
Behdad Esfahbod
fe9398e9a9 [VARC] Chain transforms
Previous code was actually wrong even, for non-uniform x/y font scale.

Fixes https://github.com/harfbuzz/harfbuzz/issues/5017
2025-01-23 22:59:12 -07:00
David Corbett
22fbc75688 [ot-tags] Update IANA and OT language registries 2025-01-22 11:03:02 -07:00
Khaled Hosny
a888761a78 [hb-ft] Hopefully clarify hb_ft_font_create() life cycle even more
Add “only” to one more place.
2025-01-21 15:57:10 +02:00
dependabot[bot]
a40d6921dc Bump github/codeql-action from 3.27.6 to 3.28.1
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.27.6 to 3.28.1.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](aa57810251...b6a472f63d)

---
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>
2025-01-20 21:04:40 +02:00
dependabot[bot]
3414b2dc6a Bump codecov/codecov-action from 5.1.1 to 5.1.2
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 5.1.1 to 5.1.2.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](7f8b4b4bde...1e68e06f1d)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-20 21:04:28 +02:00
dependabot[bot]
6e518c3f55 Bump actions/upload-artifact from 4.4.3 to 4.6.0
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.4.3 to 4.6.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](b4b15b8c7c...65c4c4a1dd)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-20 21:03:54 +02:00
dependabot[bot]
66cc1e7da9 Bump hendrikmuhs/ccache-action from 1.2.14 to 1.2.16
Bumps [hendrikmuhs/ccache-action](https://github.com/hendrikmuhs/ccache-action) from 1.2.14 to 1.2.16.
- [Release notes](https://github.com/hendrikmuhs/ccache-action/releases)
- [Commits](ed74d11c0b...5391144220)

---
updated-dependencies:
- dependency-name: hendrikmuhs/ccache-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-20 21:03:35 +02:00
Behdad Esfahbod
3a7ebc320d [config] Fix build with HB_LEAN
Fixes https://github.com/harfbuzz/harfbuzz/issues/4997
2025-01-13 14:53:31 -07:00
Khaled Hosny
1e629c3511 [morx] Blocklist dysfunctional morx table of AALMAGHRIBI.ttf font
Fixes #4108
2025-01-13 11:30:00 -07:00
Khaled Hosny
7b27c8edd4 10.2.0 2025-01-11 18:13:18 +02:00
Thrita
ba31fc95a9
Add support for Apple framework builds (#4993)
* Build: Update Apple Framework properties

Signed-off-by: Treata11 <treata11@yahoo.com>

* Build: Fix issues related to Framework properties

Signed-off-by: Treata11 <treata11@yahoo.com>

* Build: Fix framework properties of SHARED_LIBS

Signed-off-by: Treata11 <treata11@yahoo.com>

* Fix typos

---------

Signed-off-by: Treata11 <treata11@yahoo.com>
2025-01-11 11:51:57 +02:00
Behdad Esfahbod
021b443886 Garay script is RTL
Fixes https://github.com/harfbuzz/harfbuzz/issues/4996
2025-01-10 13:57:16 -07:00
Khaled Hosny
fc42cdd68d [docs] Reduce warnings 2025-01-08 22:17:03 +02:00
Khaled Hosny
1ce8191289 [subset-serialize] Formatting 2025-01-08 15:56:10 +02:00
Khaled Hosny
e943a0098b [subset-serialize] Try to fix MSVC build 2025-01-08 15:56:10 +02:00
Khaled Hosny
9d5beeafa1 [subset-serialize] Fix doc generation
gtk-doc is rather sensitive to white space, and it does not seem to be
able to parse bare `unsigned` without `int`.
2025-01-08 15:12:40 +02:00
Garret Rieger
bdb50f1c6e [repacker] Also rename api method from hb_subset_repack_or_fail -> hb_subset_serialize_or_fail. 2025-01-07 13:39:51 -07:00