Commit Graph

13 Commits

Author SHA1 Message Date
Mitchell Hashimoto
eccd07f009 pkg: replace @cImport with addTranslateC in pkg/
@cImport is going to disappear in Zig 0.17. Its deprecated in Zig 0.16.
Let's remove it now.

Replace @cImport with addTranslateC across pkg/ packages. Each
package now has a c_import.h header that is translated at build
time via addTranslateC and exposed as a "cimport" module import.

Converted packages:
- dcimgui
- fontconfig
- freetype
- glslang
- harfbuzz
- macos
- oniguruma
- opengl
- sentry
- spirv-cross
- wuffs

Omitted:
- gtk4-layer-shell - This has a bit more complexity with how it
  interacts with GTK headers, so I need to consider this a bit more.
- src/ - It'll be cleaner to do this separately.
2026-04-16 21:35:51 -07:00
Jacob Sandlund
e41dbe84fc shaping: Use position offsets for HarfBuzz 2025-12-24 16:23:16 -06:00
Mitchell Hashimoto
fd37e6a351 pkg/harfbuzz: yeet usingns 2024-08-16 17:00:58 -07:00
Mitchell Hashimoto
ea73edaf7f pkg/harfbuzz: fix c.zig 2024-08-16 15:38:18 -07:00
Mitchell Hashimoto
939e6e7a65 pkg/harfbuzz: add coretext compilation on macOS 2022-10-02 11:05:40 -07:00
Mitchell Hashimoto
dafc99746d font: Face initializes a hb_font alongside every face 2022-08-29 16:46:53 -07:00
Mitchell Hashimoto
c377e19bd0 pkg/harfbuzz: shape 2022-08-28 12:12:41 -07:00
Mitchell Hashimoto
0b4344693a pkg/harfbuzz: buffer set direction, script, and language 2022-08-28 11:54:38 -07:00
Mitchell Hashimoto
3c077ee19b pkg/harfbuzz: buffer init, add 2022-08-28 11:42:57 -07:00
Mitchell Hashimoto
5d42e2711f pkg/harfbuzz: face, font, freetype 2022-08-28 11:21:35 -07:00
Mitchell Hashimoto
3d68c72912 pkg/harfbuzz: some blob APIs 2022-08-28 10:54:42 -07:00
Mitchell Hashimoto
755760a79e pkg/harfbuzz: some functions and tests 2022-08-28 10:24:07 -07:00
Mitchell Hashimoto
367aba62c4 Add harfbuzz build (not used yet) 2022-08-28 10:09:39 -07:00