Skip to content

Fallback font resolution behavior is different from (most?) other macOS apps #886

@tlindsay

Description

@tlindsay

I use patched FantasqueSansMono installed via homebrew. The codepoint that I use for my "unsaved changes" indicator in Neovim is:

⧆ U+29C6 ⧆ SQUARED ASTERISK (Sm) https://unicode-table.com/en/29C6/

That codepoint is not defined by my font. In most (all?) other apps on my system, "Apple Symbols" is the fallback font, but Ghostty falls back to "STIX Two Math".

The Fantasque font lacks support for many codepoints in non-continuous ranges, making the current implementation of font-codepoint-map an imperfect solution.

@mitchellh mentioned in Discord that there is some ambiguity in how macOS reports fonts and that there may not be an authoritatively Correct™ way to handle this.

A potential solution would be to allow users to define a font-family-with-fallback, similar to how WezTerm handles this problem.

Relevant Discord Thread

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions