From 9210fc64bc087e38ff2d05f37f1e7edffffbe66f Mon Sep 17 00:00:00 2001 From: corgiii <5775796+coffin5257@users.noreply.github.com> Date: Thu, 29 Oct 2026 20:56:42 +0800 Subject: [PATCH] Stop the Mac's terminal text from looking heavy On Mac Catalyst, Latin text and PingFang Chinese drew visibly heavier than in Ghostty or other terminals using the same JetBrains Mono. libghostty-spm's base configuration sets `font-thicken = true`, which makes ghostty turn on CoreText font smoothing for every glyph; ghostty's own default is false. The app's overlay never said otherwise, so the Mac inherited it. Turn it off on Catalyst only; iOS is left as it was, since the smoothing was not compared there. --- iGhostVT/Backend/Theme/GhosttyAppConfiguration.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/iGhostVT/Backend/Theme/GhosttyAppConfiguration.swift b/iGhostVT/Backend/Theme/GhosttyAppConfiguration.swift index cc6f34b6..dce608ed 100644 --- a/iGhostVT/Backend/Theme/GhosttyAppConfiguration.swift +++ b/iGhostVT/Backend/Theme/GhosttyAppConfiguration.swift @@ -49,6 +49,10 @@ enum GhosttyAppConfiguration { // default-background cell, a prompt row, or a powerline row. builder.withCustom("window-padding-color", "extend") #if targetEnvironment(macCatalyst) + // The library's base config turns `font-thicken` on, which makes + // CoreText smooth every glyph; on a Mac that renders Latin and + // PingFang strokes visibly heavier than ghostty's own default. + builder.withFontThicken(false) builder.withCustom("font-codepoint-map", "U+4E00-U+9FFF=PingFang SC") builder.withCustom("font-codepoint-map", "U+3400-U+4DBF=PingFang SC") builder.withCustom("font-codepoint-map", "U+F900-U+FAFF=PingFang SC")