fix(windows): the launcher's fonts come from Windows' own DirectWrite, not a DWriteCore.dll another program left on the PATH, and a PC that still gives none gets a message (#123) #134
No reviewers
Labels
No labels
area/build
area/install
area/saves
area/tooling
area/ui
area/updates
ci: approved
good first issue
gpu/amd
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
platform/linux
platform/steam-deck
platform/windows
priority
critical
priority
high
priority
low
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/LongshotLauncher!134
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/LongshotLauncher:fix/system-directwrite"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The launcher and its setup still close without a word on Sanoku's Windows 11 PC (#123): after #131 made Inter the default font, nightly 98 crashes on
Could not create glyphTypeface. Font family: Inter … Weight: DemiBold, so the PC gives Skia no fonts at all, the bundled ones included.Cause
Avalonia makes every font, the system's and our own Inter alike, through Skia's one font manager, and on Windows Skia's only font backend is DirectWrite (checked in SkiaSharp 3.119.4's
libSkiaSharp.dll). Skia'sSkDWrite.cppasksLoadLibraryW(L"DWriteCore.dll")beforedwrite.dll, and keeps to it when it is found. ADWriteCore.dll(Windows App SDK) that another program left on the PATH and that gives no factory leaves Skia with an empty font manager: an empty default font name (the first crash), then no embedded Inter (the second). Not yet confirmed on Sanoku's PC:where DWriteCore.dllthere would.Change
FontCheck.PreferSystemDirectWrite(), first thing inMain: DLLs named without a path come from the launcher's folder and System32 only (SetDefaultDllDirectories), no PATH and no current folder. .NET loads the launcher's own native libraries by their full path from the single-file extraction, so they are unaffected.DWriteCore.dllfound, and the Windows version, instead of a silent crash.Tests
dotnet build App -c Releaseand-r win-x64build.python -I tests/test_launcher_core.pyandpython -I tests/test_release.pypass.No screenshots: the message box only shows on a PC whose fonts fail.
🤖 Generated with Claude Code