Skip to content
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

Configurable font fallback #225

Closed
christianparpart opened this issue May 29, 2021 · 5 comments
Closed

Configurable font fallback #225

christianparpart opened this issue May 29, 2021 · 5 comments
Labels
enhancement New feature or request frontend Contour Terminal Emulator (GUI frontend)
Milestone

Comments

@christianparpart
Copy link
Member

It is said that fontconfig should be used for font fallback, but it seems that terminal emulators are not always using this recommended API for font fallback.

  • kitty uses fontconfig only for retrieving the set of all fonts, then filters and prioritizes manually)
  • wezterm seems to only support font fallback based on what the user has provided in the configs.
  • What is konsole, gnome-terminal and alacritty doing?
  • Not all fontconfig system configurations seem to be reliable (if any at all).

On top of using fontconfig for getting the list of fallback fonts maybe we could provide a manually provided list of font fallbacks too.

  • Evaluate the usefulness of selecting font files based on codepoints / codepoint sequences (such as kitty does provide)
  • Evaluate embedding Powerline glyphs (should be configurable, too)
  • Evaluate embedding box drawing glyphs (should be configurable, too)
@christianparpart christianparpart added enhancement New feature or request frontend Contour Terminal Emulator (GUI frontend) labels May 29, 2021
@christianparpart christianparpart added this to the 0.3.0 milestone Jun 14, 2021
@christianparpart christianparpart removed this from the 0.3.0 milestone Dec 14, 2021
@eproxus
Copy link

eproxus commented Oct 9, 2023

Is there any configurability here yet? I’m looking into migrating from WezTerm which has a built-in NerdFont as fallback.

Unfortunately patching in NerdFonts into an existing font is very brittle and usually breaks the font in various ways.

@Yaraslaut
Copy link
Member

Yaraslaut commented Oct 9, 2023

@eproxus Thanks for the interest
I will add this into milestone for 2023 since I wanted to disable font fallback and if memory is correct @Utkarsh-khambra as well

@Yaraslaut Yaraslaut added this to the 2023-1 milestone Oct 9, 2023
@eproxus
Copy link

eproxus commented Oct 9, 2023

I will add this into milestone for 2023 since I wanted to disable font fallback

You mean rely on fontconfig only? Will this work on macOS?

@Yaraslaut
Copy link
Member

I will add this into milestone for 2023 since I wanted to disable font fallback

You mean rely on fontconfig only? Will this work on macOS?

Yes, only fontconfig, this will be naturally configurable, so if this does not work for macOS this option will not be available then. And for sure we will add other options for fallback. something like :
auto <- current behavior
priority <- list of fonts that we need to check first and if not found proceed with the rest
list <- user specified list of fonts that are used for fallback and not others
none <- do not try to find another font

@Yaraslaut
Copy link
Member

Closing this one, now configuration allows some flexibility for font fallback and builtint fonts will be implemented in #170

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request frontend Contour Terminal Emulator (GUI frontend)
Projects
None yet
Development

No branches or pull requests

3 participants