alpha
Login
or
Join now
ptr.pet
/
ghostty
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
ghostty
/
pkg
/
freetype
/
at
main
1 folder
11 files
Alessandro De Blasis
build: fix freetype C enum signedness for MSVC
5mo ago
ce993005
res
Partially revert 25856d6 since it broke pkg/freetype tests
8 months ago
Library.zig
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>
5 months ago
build.zig
build: fix freetype compilation on Windows with MSVC Gate HAVE_UNISTD_H and HAVE_FCNTL_H behind a non-Windows check since these headers do not exist with MSVC. Freetype includes zlib headers which conditionally include unistd.h based on this define. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
5 months ago
build.zig.zon
build: mark most dependencies as lazy Lazy dependencies are only fetched if the build script would actually reach a usage of that dependency at runtime (when the `lazyDependency` function is called). This can save a lot of network traffic, disk uage, and time because we don't have to fetch and build dependencies that we don't actually need. Prior to this commit, Ghostty fetched almost everything for all platforms and configurations all the time. This commit reverses that to fetching almost nothing until it's actually needed. There are very little downsides to doing this[1]. One downside is `zig build --fetch` doesn't fetch lazy dependencies, but we don't rely on this command for packaging and suggest using our custom shell script that downloads a cached list of URLs (`build.zig.zon.txt`). This commit doesn't cover 100% of dependencies, since some provide no benefit to make lazy while the complexity to make them lazy is higher (in code style typically). Conversely, some simple dependencies are marked lazy even if they're almost always needed if they don't introduce any real complexity to the code, because there is very little downside to do so. [1]: https://ziggit.dev/t/lazy-dependencies-best-dependencies/5509/5
1 year ago
c.zig
pkg/freetype: remove usingns
2 years ago
computations.zig
pkg/freetype: remove usingns
2 years ago
errors.zig
pkg/freetype: remove usingns
2 years ago
face.zig
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>
5 months ago
freetype-zig.h
font: add constraint logic to rasterizers This is in preparation to move constraint off the GPU to simplify our shaders, instead we only need to constrain once at raster time and never again. This also significantly reworks the freetype renderGlyph function to be generally much cleaner and more straightforward. This commit doesn't actually apply the constraints to anything yet, that will be in following commits.
1 year ago
main.zig
Use same hinting flags for measurement and rendering
11 months ago
tag.zig
font/freetype: API to load font table
2 years ago
test.zig
Partially revert 25856d6 since it broke pkg/freetype tests
8 months ago