Commit graph

18122 commits

Author SHA1 Message Date
Behdad Esfahbod
e054db4ae2 [fontations] Hook up to benchmark-font 2025-03-06 04:23:24 +02:00
Behdad Esfahbod
ea5a14f7bc [fontations] Implement draw_glyph 2025-03-06 04:23:24 +02:00
Behdad Esfahbod
87c62f4ebb [fontations] Boilerplate for draw_glyph 2025-03-06 04:23:24 +02:00
Behdad Esfahbod
bc2851b407 [fontations] Implement font_h_extents 2025-03-06 04:23:24 +02:00
Behdad Esfahbod
b9a4d148c9 [fontations] Implement get_glyph_extents 2025-03-06 04:23:24 +02:00
Behdad Esfahbod
f2e5955e1e [fontations] Cache a x_size and y_size 2025-03-06 04:23:24 +02:00
Behdad Esfahbod
166e630768 [fontations] Implement get_variation_glyph 2025-03-06 04:23:24 +02:00
Behdad Esfahbod
83e85d2ac1 [fontations] rustfmt 2025-03-06 04:23:24 +02:00
Behdad Esfahbod
156b77327e [fontations] Don't derive Copy et al since our types are not 2025-03-06 04:23:24 +02:00
Behdad Esfahbod
74bd99e40e [fontations] Set font variations 2025-03-06 04:23:24 +02:00
Behdad Esfahbod
7a65fdcabf [fontations] Cache location 2025-03-06 04:23:24 +02:00
Behdad Esfahbod
c969c2dec0 [fontations] Cache Size 2025-03-06 04:23:24 +02:00
Behdad Esfahbod
d19e45a1f5 [fontations] Support buildtype debugoptimized really 2025-03-06 04:23:24 +02:00
Behdad Esfahbod
51c68eb29d [fontations] Cache charmap 2025-03-06 04:23:24 +02:00
Behdad Esfahbod
f400d8b30c [fontations] Pass meson buildtype to cargo 2025-03-06 04:23:24 +02:00
Behdad Esfahbod
1705723d7e [fontations] Cache static fontfuncs object 2025-03-06 04:23:24 +02:00
Khaled Hosny
7871ee5b6c [fontations/meson] Use link_whole instead of link_with
Instead of passing `--whole-archive` manually to the linker which has a
different name on macOS linker.
2025-03-06 04:23:24 +02:00
Khaled Hosny
c6d2e9e855 [fontations/doc] Add section 2025-03-06 04:23:24 +02:00
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