mirror-ghostty/pkg/freetype
Alessandro De Blasis ce99300513 build: fix freetype C enum signedness for MSVC
MSVC translates C enums as signed int, while GCC/Clang uses unsigned
int. The freetype Zig bindings hardcode c_uint for enum backing types,
causing type mismatches when compiling with MSVC target.

Fix by adding @intCast at call sites where enum values are passed to
C functions, and @bitCast for the glyph format tag extraction where
bit-shift operations require unsigned integers.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 17:12:35 +01:00
..
res Partially revert 25856d6 since it broke pkg/freetype tests 2025-11-24 17:24:47 -07:00
Library.zig pkg/freetype: remove usingns 2024-08-16 15:34:46 -07:00
build.zig build: fix freetype compilation on Windows with MSVC 2026-03-24 08:08:29 +01:00
build.zig.zon build: mark most dependencies as lazy 2025-03-14 13:32:19 -07:00
c.zig pkg/freetype: remove usingns 2024-08-16 15:34:46 -07:00
computations.zig pkg/freetype: remove usingns 2024-08-16 15:34:46 -07:00
errors.zig pkg/freetype: remove usingns 2024-08-16 15:34:46 -07:00
face.zig build: fix freetype C enum signedness for MSVC 2026-03-24 17:12:35 +01:00
freetype-zig.h font: add constraint logic to rasterizers 2025-07-04 15:47:28 -06:00
main.zig Use same hinting flags for measurement and rendering 2025-09-17 23:04:59 -07:00
tag.zig font/freetype: API to load font table 2024-05-28 09:48:01 -07:00
test.zig Partially revert 25856d6 since it broke pkg/freetype tests 2025-11-24 17:24:47 -07:00