-
-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assign unicode ranges to fonts #1374
Comments
Ranges for custom assignment of codepoints to glyphs is AFAIK only available on Kitty, right? Or do we have other TEs allowing that as well? If I am not mistaken, on Linux at least, you could use fontconfig to achieve the same. On the other hand, we planned to integrate "Symbols Nerd Font" (and others) for convenience into Contour natively anyways (#170). |
not sure, I've used kitty for a while and don't know the whole landscape.
I was going to say I already had a fontconfig conf for this but it seems it doesn't do that. Will try the fontconfig conf method. |
So using fontconfig for that seems simply impossible (for an user) to do. There's two ways to promote a font; locale shenanigans (can't work; "dev icons" isn't a locale) or carefully designing your font priority list like a bonzai garden, which is impossible since there's already font priorities set by the system fontconfigs. Even if this worked, it wouldn't work on other platforms.
While I don't have a strong opinion on that, it is not a suitable answer to the problem; It's a forever incomplete solution that only covers one potential use-case. |
Abstract
nerd-fonts are a common way to add special symbols in terminal UIs (shell prompts, editors, etc). There are two ways this is implemented, a patched font or a symbols-only font. I prefer to use the symbols-only font because it allows for more flexibility and I don't need to install 2GB worth of duplicate fonts, but it does mean some form of fallback mechanism is necessary. It seems that currently this does partially work:
(kitty left, contour right; notice the incorrect symbol for the
>
)Motivation
To ensure that certain ranges of codepoints have the correct font, I propose a configuration option that allows for assigning ranges to certain fonts. I suspect this assignment might already be possible under-the-hood, given the
font.emoji
config option.Specification
My thought is something like:
Other Implementations
https://sw.kovidgoyal.net/kitty/conf/#opt-kitty.symbol_map
The text was updated successfully, but these errors were encountered: