Commit graph

18258 commits

Author SHA1 Message Date
Behdad Esfahbod
afe1af8fa9 [fontations] Implement get_nominal_glyphs()
Shapes now.
2025-03-06 04:23:24 +02:00
Behdad Esfahbod
e801e484f1 [fontations] Remove get_glyph_h_advance() 2025-03-06 04:23:24 +02:00
Behdad Esfahbod
1390da5d12 [fontations] Implement get_glyph_h_advances() 2025-03-06 04:23:24 +02:00
Behdad Esfahbod
94a6cfba89 [fontations] Working get_glyph_advance() 2025-03-06 04:23:24 +02:00
Behdad Esfahbod
77b20cf7b9 Update src/hb-fontations.h
Co-authored-by: Khaled Hosny <khaled@aliftype.com>
2025-03-06 04:23:24 +02:00
Behdad Esfahbod
0113c86a2f [fontations] Hide internal symbols 2025-03-06 04:23:24 +02:00
Behdad Esfahbod
71accd5e14 [fontations] Hide one symbol
How do I hide the other internal extern "C" symbols?
2025-03-06 04:23:24 +02:00
Behdad Esfahbod
9d754188c6 [meson] Fix unintended change to coretext 2025-03-06 04:23:24 +02:00
Behdad Esfahbod
9439e1fdad [fontations] Links finally 2025-03-06 04:23:24 +02:00
Behdad Esfahbod
6cac2a1ae0 [fontations] Ouch 2025-03-06 04:23:24 +02:00
Behdad Esfahbod
395270e494 [fontations] Try folding into libharfbuzz 2025-03-06 04:23:24 +02:00
Behdad Esfahbod
2a06b85d4e [fontations] Try using an intermediate library
Still doesn't link.
2025-03-06 04:23:24 +02:00
Behdad Esfahbod
f28daba53c [fontations] I don't know... 2025-03-06 04:23:24 +02:00
Behdad Esfahbod
161b20f333 Try building with cargo 2025-03-06 04:23:24 +02:00
Behdad Esfahbod
e806c9ae2a [fontations] Only require rust if building with fontations 2025-03-06 04:23:24 +02:00
Behdad Esfahbod
e1c934421a [fontations] More experiments 2025-03-06 04:23:24 +02:00
Behdad Esfahbod
db6431f140 [fontations] Fix a warning 2025-03-06 04:23:24 +02:00
Behdad Esfahbod
bed809bc6b [fontations] Add to docs
Module itself undocumented so far.
2025-03-06 04:23:24 +02:00
Behdad Esfahbod
26da19f6ea Kinda builds now with bindgen
Requires nightly.
2025-03-06 04:23:24 +02:00
Behdad Esfahbod
3ba4266daa [fontations] bindgen hb.rs 2025-03-06 04:23:24 +02:00
Behdad Esfahbod
f9b4706151 [fontations] Use as dependency, not library
Since it's optional.
2025-03-06 04:23:24 +02:00
Behdad Esfahbod
2abe54fc9c Almost works! 2025-03-06 04:23:24 +02:00
Behdad Esfahbod
ad8e4a29b9 [fontations] Start building a libharfbuzz-fontations 2025-03-06 04:23:24 +02:00
Patrik Weiskircher
ca3cd48fa3 Fix memory leak in hb_coretext_get_glyph_name 2025-03-04 16:59:21 +02:00
Behdad Esfahbod
718542ef7a [util] Space 2025-03-03 22:45:15 -07:00
Behdad Esfahbod
c544028700 [meson] Remove -Wno-non-virtual-dtor
No idea why it was there to begin with. We control warnings
from hb.hh.
2025-03-04 05:36:01 +02:00
Behdad Esfahbod
958e2c5331 Revert "[meson] Add buildtype=debugoptimize by default"
This reverts commit c4b572a24c.

This broke CI. Reverting till we figure it out.
2025-03-03 20:22:35 -07:00
Behdad Esfahbod
c4b572a24c [meson] Add buildtype=debugoptimize by default
Fixes https://github.com/harfbuzz/harfbuzz/issues/5103
2025-03-03 19:13:34 -07:00
Behdad Esfahbod
50fe45f43c [COLR] Fix memory leak 2025-03-03 16:31:41 -07:00
Alfred Wingate
628b868f44 meson: refactor freetype dependency logic
Simplify and respect -Dfreetype=disabled again.

Bug: https://bugs.gentoo.org/950274
Fixes: 1ad48fddd0
See-Also: 604fe80707
Signed-off-by: Alfred Wingate <parona@protonmail.com>
2025-03-04 01:12:05 +02:00
Behdad Esfahbod
9c6b6998ef [VARC] Fix sign of returned extents 2025-03-03 11:48:17 -07:00
dependabot[bot]
2a471ed125 Bump setuptools from 73.0.1 to 75.8.2 in /.ci
Bumps [setuptools](https://github.com/pypa/setuptools) from 73.0.1 to 75.8.2.
- [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.8.2)

---
updated-dependencies:
- dependency-name: setuptools
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-03 11:33:11 -07:00
Behdad Esfahbod
e9134c8ce3 [COLR] Reduce malloc pressure
By caching paint-extents.
2025-03-03 02:18:49 -07:00
Behdad Esfahbod
9efd17e225 [COLR] Switch to using (existing) accelerator 2025-03-03 02:17:13 -07:00
Behdad Esfahbod
17ddc84406 [VARC] Fix scratch caching 2025-03-03 01:27:32 -07:00
Behdad Esfahbod
a62058eee8 [VARC] Separate varc scratch from glyf scratch 2025-03-03 01:19:52 -07:00
Behdad Esfahbod
3199d1c1f5 [VARC] Use a context object to pass arguments around 2025-03-02 18:35:46 -07:00
Behdad Esfahbod
e0c6c98025 [VARC] Implement get_extents()
Fixes https://github.com/harfbuzz/harfbuzz/issues/5007
2025-03-02 16:56:20 -07:00
Behdad Esfahbod
d1826ca626 [TupleValues] Fix regression
Introduced in 043980a60e
2025-03-02 15:45:35 -07:00
Behdad Esfahbod
d9628a5643 [MultiVarData] Micro-optimize 2025-03-02 13:00:55 -07:00
Behdad Esfahbod
c81b1c43b1 [MultiVarData] Remove a likely 2025-03-02 12:43:28 -07:00
Behdad Esfahbod
ad0a5c93b5 [vector] Add fast path in extend() for length-known iterators 2025-03-01 16:02:10 -07:00
Behdad Esfahbod
7e3c96582f [VARC] Reuse parent MultiVarStore cache if coords didn't change
Minor optimization; applicable to the test hangul font mostly.
2025-03-01 15:09:58 -07:00
Khaled Hosny
3ef8709829 10.4.0 2025-03-01 00:59:49 +02:00
Behdad Esfahbod
75ce774bc3 [gvar] Use a method for add_delta 2025-02-28 15:25:23 -07:00
Khaled Hosny
532ed228e7 [docs] Move all deprecated APIs to the deprecated section 2025-02-28 23:56:03 +02:00
Khaled Hosny
69e1c3c352 [ft] Add hb_ft_font_get_ft_face()
A new name for hb_ft_font_get_face(), which is now deprecated.

Fixes  https://github.com/harfbuzz/harfbuzz/issues/5084
2025-02-28 23:56:03 +02:00
Khaled Hosny
484e8d4997 [directwrite] Add hb_directwrite_face_get_dw_font_face()
A new name for hb_directwrite_face_get_font_face(), which is now
deprecated.

Part of https://github.com/harfbuzz/harfbuzz/issues/5084
2025-02-28 23:56:03 +02:00
Behdad Esfahbod
8226f597ac [decycler] Add a couple more tests 2025-02-28 13:49:44 -07:00
Behdad Esfahbod
64dbeaf0f4 [glyf] Mover decycler to the scratch pad 2025-02-28 01:13:25 -07:00