fix(windows): the launcher starts on a PC that gives no default font, with its own Inter as the default (#123) #131

Merged
HumanBean merged 1 commit from HumanBean/LongshotLauncher:fix/default-font into main 2026-11-16 02:37:39 +00:00
Owner

Some Windows 11 PCs give Avalonia no default font name (and no installed font to fall back on), so the launcher and its setup crashed before the first window with Default font family name can't be null or empty, closing without a word after SmartScreen's Run anyway. Fixes #123.

The launcher now names its bundled Inter, the font its windows already use, as Avalonia's default (FontManagerOptions.DefaultFamilyName), so the system's default font isn't asked for. The screenshots tool uses the same options.

Checked with a headless run whose font manager returns an empty default name and no installed fonts: without the change, the reporter's exact InvalidOperationException; with it, the default resolves to Inter. tests/test_launcher_core.py and tests/test_release.py pass. Nothing changes on screen (the windows already set Inter).

🤖 Generated with Claude Code

Some Windows 11 PCs give Avalonia no default font name (and no installed font to fall back on), so the launcher and its setup crashed before the first window with `Default font family name can't be null or empty`, closing without a word after SmartScreen's Run anyway. Fixes #123. The launcher now names its bundled Inter, the font its windows already use, as Avalonia's default (`FontManagerOptions.DefaultFamilyName`), so the system's default font isn't asked for. The screenshots tool uses the same options. Checked with a headless run whose font manager returns an empty default name and no installed fonts: without the change, the reporter's exact `InvalidOperationException`; with it, the default resolves to Inter. `tests/test_launcher_core.py` and `tests/test_release.py` pass. Nothing changes on screen (the windows already set Inter). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(windows): the launcher starts on a PC that gives no default font, with its own Inter as the default (#123)
All checks were successful
CI / Compile and test (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 3s
11fc3aadfb
Avalonia asked the system for its default font's name and, on some Windows 11 PCs where that and the installed fonts come
back empty, threw "Default font family name can't be null or empty" before the first window, so the setup closed without a
word. The launcher now names its bundled Inter as the default (FontManagerOptions), the font its windows already use.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
HumanBean deleted branch fix/default-font 2026-11-16 02:37:39 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/LongshotLauncher!131
No description provided.