Behdad Esfahbod
9dbb84e6fd
[font] Don't apply synthetic bold/slant to parent
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/5274
2025-04-22 20:25:44 -06:00
Behdad Esfahbod
1a9e21758d
[font/draw] Move slanting to font layer
...
I moved it to the draw layer in 11.0.0; That was a bad design:
font-funcs should NOT be responsible for synthetic bold & slant.
This design reverts that and makes the font layer apply it,
using a recording.
This is a minor API change from 11.0.0 since hb_draw_state_t::slant_xy
which was introduced in 11.0.0, is removed now. I believe no client
had started using it. It was only relevant to other font-funcs draw
implementations.
2025-04-22 19:52:21 -06:00
Behdad Esfahbod
9ef82f8926
[font] Embolden font_v_extents
2025-04-22 19:35:34 -06:00
Behdad Esfahbod
5ebd740ee8
[font] Move font_h_extents emboldening to font layer
2025-04-22 19:29:02 -06:00
Behdad Esfahbod
0d8717275a
[buffer] Limit the extent of set_flags range
...
We can easily get into O(n^2) otherwise.
2025-04-22 15:40:06 -06:00
JordanTheToaster
b0f4979d47
[cmake] Fix missing sources
2025-04-22 01:48:26 -06:00
dependabot[bot]
ad36480bad
Bump setuptools from 78.1.0 to 79.0.0 in /.ci
...
Bumps [setuptools](https://github.com/pypa/setuptools ) from 78.1.0 to 79.0.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/v78.1.0...v79.0.0 )
---
updated-dependencies:
- dependency-name: setuptools
dependency-version: 79.0.0
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-04-21 14:28:17 +02:00
Khaled Hosny
fa791a3425
[ci/msys2] Drop mingw32 build
...
Upstream is dropping it, and mingw-w64-i686-icu package is already gone.
https://www.msys2.org/news/#2023-12-13-starting-to-drop-some-32-bit-packages
https://github.com/msys2/MINGW-packages/discussions/19326
2025-04-20 15:34:01 +02:00
Behdad Esfahbod
12457498af
[meson] Report Fontations status
2025-04-20 05:18:38 -06:00
Behdad Esfahbod
66b357b99b
Merge branch 'main' into HVF
2025-04-20 05:11:17 -06:00
Behdad Esfahbod
0536254885
Merge pull request #5294 from harfbuzz/paint-bounds
...
[COLRv1] `paint-bounds`
2025-04-20 05:06:54 -06:00
Behdad Esfahbod
c62af2c360
[paint-unbounded] Minor tweak
...
I like it better this way.
2025-04-20 04:53:33 -06:00
Behdad Esfahbod
6e2806e46c
[paint-bounded] Reduce vector use
...
Keep current drawing's boundedness outside of the vector
(common case).
Again, no speedup because of the scratch pattern.
2025-04-20 04:47:58 -06:00
Behdad Esfahbod
a9ed75151b
Merge branch 'main' into HVF
2025-04-20 04:36:25 -06:00
Behdad Esfahbod
27b2e16ac0
[atomic] Make cmpexch() non-const
...
Was a mistake. Make the affected members mutable instead.
2025-04-20 04:34:40 -06:00
Behdad Esfahbod
7aa3ab933b
[paint-bounded] Remove one vector
...
Doesn't make things faster though because of the scratch pattern.
2025-04-20 04:28:28 -06:00
Behdad Esfahbod
78822b6336
Revert "[COLRv1] Move paint boundedness check to font layer"
...
This reverts commit c9a26fbf47 .
2025-04-20 04:23:35 -06:00
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
aef3df5097
Merge branch 'main' into HVF
2025-04-20 00:37:24 -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
Behdad Esfahbod
04cdcbf08a
Merge branch 'main' into HVF
2025-04-10 18:40:03 -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
fd9a2f2366
[GPOS] Regain speed
2025-04-07 17:44:45 -06:00
Behdad Esfahbod
bf3dd7b90b
Merge branch 'main' into HVF
2025-04-07 16:38:09 -06:00
Behdad Esfahbod
c7f980907f
[GPOS] Short-circuit variations if no axis set
2025-04-07 16:37:00 -06:00