Nerd fonts glyph width in 1.2.0 #8822
Issue DescriptionI use MonoLisa font patched with the Nerd Fonts font patcher using the I'm not sure if this behavior is expected or if it's a bug. I found #8651, but that discussion is specifically about CJK characters and is related to another entry from the 1.2.0 changelog. I also checked other popular terminal emulators and none of them has this problem. If this is intentional, is there a possibility of adding a configuration option that reverts the rendering to pre-1.2 where those characters render “correctly”? Expected BehaviorThis is how my prompt renders in Ghostty 1.1.3: The chevron icon is aligned with the tilde character representing the home directory, and the space around the branch icon is even. Here's how other popular terminal emulators render the same prompt in a directory with a Git repository: In all emulators, the rendering of icons more-or-less matches that from Ghostty 1.1.3. Actual BehaviorIn Ghostty 1.2.0, the same prompt renders as follows: Here, the chevron icon is now misaligned relative to Reproduction Stepsghostty +show-face --cp=0xEAB6
ghostty +show-face --cp=0xF418In Ghostty 1.1.3, the above commands print characters that are perfectly centered within the double angle brackets. In Ghostty 1.2.0, however, both characters are shifted to the right. Ghostty LogsNo response Ghostty VersionOS Version InformationmacOS 26 (Tahoe) (Linux only) Display ServerNone (Linux only) Desktop Environment/Window ManagerNo response Minimal Ghostty ConfigurationThis is reproducible with the default configuration and the default font.Additional Relevant ConfigurationNo response I acknowledge that:
|








Hi all! There's a series of PRs to improve icon scaling and alignment, which I think will deal with most of your concerns. Just hang tight while they make it through the review pipeline. See #8563 and #8847, and also #8580 if you're on macOS.