Skip to content

feat: font typeahead, paste fix, preview glyph fallback#2

Merged
noxcraftdev merged 1 commit intonoxcraftdev:mainfrom
luan:editor-improvements
Apr 4, 2026
Merged

feat: font typeahead, paste fix, preview glyph fallback#2
noxcraftdev merged 1 commit intonoxcraftdev:mainfrom
luan:editor-improvements

Conversation

@luan
Copy link
Copy Markdown
Contributor

@luan luan commented Apr 4, 2026

Summary

  • Cmd+V fix: Keep native macOS menu bar so clipboard shortcuts work in webview text inputs (non-macOS still strips the menu)
  • Font typeahead: Replace hardcoded font preset buttons with a searchable typeahead that enumerates installed system fonts by parsing TTF/OTF name tables
  • Preview glyph fallback: Dynamically build the preview font-family from installed symbol/nerd fonts so special Unicode glyphs (powerline, segmented digits, devicons) render correctly

Test plan

  • Open editor on macOS, verify Cmd+V pastes into text inputs
  • Open editor on Linux/Windows, verify no visible menu bar appears
  • Go to Settings > Editor Font, type a partial font name, verify dropdown shows matching installed fonts
  • Select a font from the dropdown, verify preview updates
  • Verify segmented digit characters (🯰–🯹) and powerline glyphs render in the preview bar

- Fix Cmd+V in text inputs by keeping native menu on macOS (was stripped
  by .with_menu(None) which breaks the macOS responder chain)
- Replace hardcoded font preset buttons with a typeahead picker that
  enumerates system fonts by parsing TTF/OTF name tables
- Build preview font-family fallback dynamically from installed symbol/
  nerd fonts so special glyphs (powerline, segmented digits, etc.) render
@noxcraftdev noxcraftdev merged commit 6bc9902 into noxcraftdev:main Apr 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants