Skip to content

Commit e696168

Browse files
committed
Fix fonts
1 parent bcbe815 commit e696168

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

Launcher.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
5. publish-release.yml GitHub Actions workflow
1111
-->
1212
<TargetFramework>net10.0</TargetFramework>
13-
<Version>0.38.0.49</Version>
13+
<Version>0.38.0.50</Version>
1414
<UseRidGraph>true</UseRidGraph>
1515

1616
<!--

SS14.Launcher/Theme/AppThemeManager.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,17 @@ private static bool TryApplyFontCached(Application app, string descriptor, out E
414414
private static bool TryApplyFont(Application app, string descriptor, out Exception? error)
415415
{
416416
error = null;
417+
418+
if (Uri.TryCreate(descriptor, UriKind.Absolute, out var uri) && uri.IsFile)
419+
{
420+
var path = uri.LocalPath;
421+
if (!string.IsNullOrWhiteSpace(path) && !File.Exists(path))
422+
{
423+
error = new FileNotFoundException("Font file not found.", path);
424+
return false;
425+
}
426+
}
427+
417428
try
418429
{
419430
var family = new FontFamily(descriptor);

0 commit comments

Comments
 (0)