Skip to content

Cross-platform font resolution and theme apply fix - #137

Merged
spoofzu merged 1 commit into
masterfrom
feature/crossplatform-fonts-theme-fix
Mar 5, 2026
Merged

spoofzu merged 1 commit into
masterfrom
feature/crossplatform-fonts-theme-fix

Conversation

@spoofzu

@spoofzu spoofzu commented Mar 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • Cross-platform monospace font resolution — FontPreferences now dynamically selects the best available monospace font per platform (Courier New on macOS/Windows, DejaVu Sans Mono on Linux) instead of hardcoding "Courier New", which may not exist on all systems. Falls back to Java's logical Monospaced font.
  • Bundled fallback fonts — Ships JetBrains Mono, IBM Plex Mono, and Fira Mono as embedded resources, automatically registered at startup so they're available as alternatives in the font chooser on any platform.
  • Theme apply fix — ScanResultsPanel.applyTheme() now correctly re-renders the detail pane content when no host card is selected (e.g., the startup placeholder view), ensuring font and color changes take effect immediately.
  • Sample scan branding — Updated sample-scan.dvscan.json preamble with ASCII art banner and project GitHub links.

Test plan

  • Verify mvn clean verify passes
  • Launch GUI on macOS — confirm default font renders correctly
  • Launch GUI on Linux (if available) — confirm fallback font is selected instead of missing Courier New
  • Open Settings → change font/colors → confirm detail pane updates without needing to select a host card first
  • Open Settings → Reporting tab → verify bundled fonts (JetBrains Mono, IBM Plex Mono, Fira Mono) appear in font chooser

🤖 Generated with Claude Code

… apply fix

- Resolve best monospace font per platform (macOS/Windows/Linux) instead of
  hardcoding Courier New which may not exist on all systems
- Bundle JetBrains Mono, IBM Plex Mono, and Fira Mono as embedded fallback fonts
- Fix ScanResultsPanel.applyTheme() to re-render detail pane when no host card
  is selected (e.g. startup placeholder)
- Update sample-scan.dvscan.json with ASCII art banner and project links

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@spoofzu
spoofzu merged commit 5d33aa0 into master Mar 5, 2026
@spoofzu
spoofzu deleted the feature/crossplatform-fonts-theme-fix branch March 5, 2026 18:05
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.

1 participant