Skip to content

[SDLSystem/Win32] Support absolute font paths - #245

Merged
marchc1 merged 1 commit into
SourceDotNET:mainfrom
HappyDOGE:dg/sdl-win-font-load-fix
Nov 12, 2026
Merged

marchc1 merged 1 commit into
SourceDotNET:mainfrom
HappyDOGE:dg/sdl-win-font-load-fix

Conversation

@HappyDOGE

Copy link
Copy Markdown
Collaborator

Problem: On my machine there's an Office font which has an absolute path in its registry key. As such before this fix SDN failed to load because it concatenated this absolute path to the fonts dir, causing a FileNotFoundException on font load.

Solution: Added a check for absolute paths to be used as-is, as well as a file exists check to prevent crashes in case of missing font files.

Problem: On my machine there's an Office font which has an absolute path
in its registry key. As such before this fix SDN failed to load because
it concatenated this absolute path to the fonts dir, causing a
FileNotFoundException on font load.

Solution: Added a check for absolute paths to be used as-is, as well as
a file exists check to prevent crashes in case of missing font files.
@marchc1
marchc1 merged commit b1a5f40 into SourceDotNET:main Nov 12, 2026
16 checks passed
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.

3 participants