mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-06 07:38:21 +00:00
windows: avoid fontconfig and ensure build compiles
This commit is contained in:
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@@ -744,6 +744,10 @@ jobs:
|
||||
Write-Host "Zig installed."
|
||||
.\zig\zig.exe version
|
||||
|
||||
- name: Compile build
|
||||
shell: pwsh
|
||||
run: .\zig\zig.exe build --help
|
||||
|
||||
- name: Generate build testing script
|
||||
shell: pwsh
|
||||
run: |
|
||||
|
||||
@@ -40,6 +40,14 @@ pub const Backend = enum {
|
||||
};
|
||||
}
|
||||
|
||||
if (target.os.tag == .windows) {
|
||||
// Avoid fontconfig on Windows because its libxml2 dependency
|
||||
// may not unpack due to symlinks. Use plain freetype for now
|
||||
// which means no font discovery. Full solution would likely use
|
||||
// DirectWrite which has its own discovery API.
|
||||
return .freetype;
|
||||
}
|
||||
|
||||
// macOS also supports "coretext_freetype" but there is no scenario
|
||||
// that is the default. It is only used by people who want to
|
||||
// self-compile Ghostty and prefer the freetype aesthetic.
|
||||
|
||||
Reference in New Issue
Block a user