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

Add support for Nerd Fonts #702

Open
grynspan opened this issue Sep 17, 2024 · 0 comments
Open

Add support for Nerd Fonts #702

grynspan opened this issue Sep 17, 2024 · 0 comments
Labels
command-line experience enhancements to the command line interface enhancement New feature or request help wanted Extra attention is needed tools integration Integration of swift-testing into tools/IDEs

Comments

@grynspan
Copy link
Contributor

We should look into supporting Nerd Fonts as symbol substitutes when using swift test.

There's no standard way to detect what font the current terminal is using (if any). Some platform-specific mechanisms:

  • For Gnome Terminal, we may be able to use GSettings.
  • On Windows, GetCurrentConsoleFont() may or may not work depending on whether the pipe to SwiftPM interferes with it.
  • We could read the font out of "com.apple.terminal" for Terminal.app?

Or we could just fall back to an environment variable like "SWT_NERD_FONTS_ENABLED" like we do with SF Symbols.

@grynspan grynspan added enhancement New feature or request help wanted Extra attention is needed tools integration Integration of swift-testing into tools/IDEs command-line experience enhancements to the command line interface labels Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
command-line experience enhancements to the command line interface enhancement New feature or request help wanted Extra attention is needed tools integration Integration of swift-testing into tools/IDEs
Projects
None yet
Development

No branches or pull requests

1 participant