Commit Graph
18731 Commits
Author SHA1 Message Date
Behdad Esfahbod c9a26fbf47 [COLRv1] Move paint boundedness check to font layer
This way it will apply to fontations and future implementations
as well.

But this slows down things apparently, specially if the font
does use clipboxes. So I'm going to revert.
2025-04-20 04:22:32 -06:00
Behdad Esfahbod 8aa88aa416 [COLRv1:ot/ft] Use paint-bounded instead of paint-extents
Faster. Note that this also means that if there is no clip-box,
we don't compute the bounds and emit an initial clip anymore.
That was totally unnecessary and against the COLRv1 rendering
algorithm.

This makes painting of COLRv1 fonts without clipboxes *much*
faster, as previously we were computing bounds using all subglyph
outlines. Not anymore.

Before:
BM_Font/paint_glyph/Nupuram-Color.colrv1.ttf/ot                   1.78 ms

After:
BM_Font/paint_glyph/Nupuram-Color.colrv1.ttf/ot                  0.155 ms
2025-04-20 04:11:07 -06:00
Behdad Esfahbod d175e2214e [paint-bounded] Add new code to compute boundedness of paintings
This is faster than using paint-extents to just compute boundedness.

Unused right now.
2025-04-20 04:02:05 -06:00
Behdad Esfahbod 4a9ac263c6 [draw] Move draw_extents form paint-extents to draw 2025-04-20 02:12:40 -06:00
Behdad Esfahbod 4fc84b0e99 [ot-font] Fix order of COLR vs VARC extents
COLR can reference VARC, not the other way around.
2025-04-20 00:36:28 -06:00
Behdad Esfahbod 01793d3eaf [fontations] Pop font transform 2025-04-20 00:32:44 -06:00
jfkthame 4e7b178f3c Avoid unannotated-fallthrough in hb-ot-layout-base-table.hh 2025-04-17 11:57:15 -06:00
jfkthame 2602f7292c Avoid unannotated-fallthrough warning in COLR.hh 2025-04-17 11:56:46 -06:00
Khaled Hosny 416e6b6921 11.1.0 11.1.0 2025-04-16 20:35:58 +02:00
Behdad Esfahbod 32b36fa84c [atexit] Fix extra semicolon
Fixes https://github.com/harfbuzz/harfbuzz/issues/5290
2025-04-15 12:37:43 -06:00
Behdad Esfahbod bc15ebdea1 [font] Fix abs of int value 2025-04-15 12:37:11 -06:00
Behdad Esfahbod 8f413a533c [layout] Docs 2025-04-15 10:03:16 -06:00
Behdad Esfahbod 21516f74d2 [cmake] Add hb-script-list.h
Fixes https://github.com/harfbuzz/harfbuzz/issues/5288
2025-04-15 09:58:42 -06:00
Behdad Esfahbod 7bb3000a31 [font] Allow negative emboldening strength to enlighten 2025-04-15 09:58:42 -06:00
dependabot[bot] 4da8671b50 Bump github/codeql-action from 3.28.14 to 3.28.15
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.28.14 to 3.28.15.
- [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/fc7e4a0fa01c3cca5fd6a1fddec5c0740c977aa2...45775bd8235c68ba998cffa5171334d58593da47)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-15 17:02:15 +02:00
Khaled Hosny e192a584a8 [check-symbols] Ignore another rust symbol
Fixes https://github.com/harfbuzz/harfbuzz/issues/5287
2025-04-15 16:59:46 +02:00
robxnano cf7bffb690 meson: Use full path in HBSOURCES
Using the file object directly in a format string is broken
and now deprecated.
2025-04-13 02:59:31 +02:00
robxnano 9def626d4a meson: Fix warnings about features in later versions
By using the fs.relative_to() function inside version_compare
blocks, Meson can suppress warning messages about it being used
in a project with a lower minimum version.
2025-04-13 02:59:31 +02:00
robxnano e2a865f024 meson: Only check for _MSC_FULL_VER once
Prevents the log from filling with repeated calls to check the
value of the define.
2025-04-13 02:59:31 +02:00
Garret Rieger efcb7d3de1 [subset] close unicodes over bidi mirror variants during subsetting.
Fixes #5281. Does the closure by default, but I've introduced a new flag and option to disable this behaviour since some users may want to get the minimal set if they know they don't need the mirrored variants.
2025-04-11 18:13:28 -06:00
Garret Rieger 5afbd187b6 [subset] Split subset plan variations function into separate file.
Compile times for hb-subset-plan.cc go from 16s -> 13s.
2025-04-09 17:08:06 -06:00
Behdad Esfahbod e6b5dba369 [README] Add Subsetter study 2025-04-09 16:53:22 -06:00
Garret Rieger d3ccdcdd80 [subset] Move GDEF subset planning into hb-subset-plan-layout.cc 2025-04-09 16:45:07 -06:00
Garret Rieger b33f2e26ee [subset] Start splitting layout specific subset plan functionality.
The aim is to reduce the compiled time of hb-subset-plan.cc which on my machine takes almost 30s to compile.
2025-04-09 16:45:07 -06:00
Behdad Esfahbod ab3235150d [common] Move hb_script_t enum to a separate file
Fixes https://github.com/harfbuzz/harfbuzz/issues/5271
2025-04-09 10:43:02 -06:00
Behdad Esfahbod 5f80cc1600 [directwrite] Fix build 2025-04-08 02:13:39 -06:00
Behdad Esfahbod 6b0124284b [mutex] Delete copy constructors 2025-04-08 01:58:10 -06:00
Behdad Esfahbod caa9cf2e85 [atomic] Remove unnecessary macro
Had typo in it as well.
2025-04-08 01:50:51 -06:00
Behdad Esfahbod c7f980907f [GPOS] Short-circuit variations if no axis set 2025-04-07 16:37:00 -06:00
Garret Rieger b1a0a4c228 In OT::VarData::Serialize don't attempt to serialize an empty set of rows.
Protects against incorrectly accessing rows[0] when rows is empty.
2025-04-07 13:11:39 -06:00
dependabot[bot] 6dff699f3f Bump fonttools from 4.56.0 to 4.57.0 in /.ci
Bumps [fonttools](https://github.com/fonttools/fonttools) from 4.56.0 to 4.57.0.
- [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.56.0...4.57.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-07 14:00:02 +02:00
dependabot[bot] 6697cd833a Bump github/codeql-action from 3.28.13 to 3.28.14
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.28.13 to 3.28.14.
- [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/1b549b9259bda1cb5ddde3b41741a82a2d15a841...fc7e4a0fa01c3cca5fd6a1fddec5c0740c977aa2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-07 13:52:23 +02:00
Khaled Hosny 2c4bc83244 [ot-math] Fix build with HB_NO_MATH 2025-04-07 13:43:16 +02:00
Behdad Esfahbod e31721b5cf [test/shape] Write cmdline as test description 2025-04-06 21:41:09 -06:00
Behdad Esfahbod a9e2c8f3aa Merge pull request #5264 from harfbuzz/tap2
Tap2
2025-04-06 19:34:18 -06:00
Behdad Esfahbod a3d626b4b9 [test-object] Hopefully last ubsan fix
API change:
- hb_face_is_immutable() now takes `hb_face_t *` instead of previous
  `const hb_face_t *`.  This should not pose any problem for any
  clients in our belief.
2025-04-06 19:16:43 -06:00
Behdad Esfahbod b99382e292 [test-unicode] Try disabling one test under ubsan 2025-04-06 18:53:53 -06:00
Behdad Esfahbod ba4a92c53b [test-object] Fix ubsan issues 2025-04-06 18:48:39 -06:00
Behdad Esfahbod 8a1ba4d151 [test-object] See if this helps make ubsan happy 2025-04-06 18:12:22 -06:00
Behdad Esfahbod fb04a306fc [test/api] Fix a few ubsan issues 2025-04-06 18:08:50 -06:00
Behdad Esfahbod b43901151f [test-draw] Make ubsan happy 2025-04-06 17:28:03 -06:00
Behdad Esfahbod b106a9ef58 [CI] Put back the meson-default sanitizer options 2025-04-06 16:36:50 -06:00
Behdad Esfahbod 59771e5613 [CI] Redirect sanitizer outputs to stderr 2025-04-06 16:28:40 -06:00
Behdad Esfahbod fd9903fc4e [hb-subset] Try to fix leak 2025-04-06 16:20:23 -06:00
Behdad Esfahbod f09c4d6dd8 [test/subset] Fix a regular expression 2025-04-06 15:54:21 -06:00
Behdad Esfahbod 1f0559392d [test/subset] Massage more 2025-04-06 15:50:20 -06:00
Behdad Esfahbod d8f00171d7 [test/subset] black 2025-04-06 15:33:25 -06:00
Behdad Esfahbod cc065cf2e5 [test/subset] Better report passed tests 2025-04-06 15:33:08 -06:00
Behdad Esfahbod c60067c675 [test/subset] See if this fixes CI 2025-04-06 15:25:58 -06:00
Behdad Esfahbod 8456c33ac3 [test/shape] Respect @face-loaders directive 2025-04-06 14:33:44 -06:00