swiftlang / swiftlang/swift-testing
Add support for Nerd Fonts
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 2.2k
- Forks
- 169
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 56
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing how swift test currently selects symbol substitutes and read the linked Nerd Fonts documentation. Compare the proposed platform-specific font detection approaches with the SWT_NERD_FONTS_ENABLED environment-variable fallback; the work is done when a concrete detection or opt-in design is implemented and its behavior is verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100