diff --git a/Source.SDLSystem/SDL3_System.Win32.cs b/Source.SDLSystem/SDL3_System.Win32.cs index 3d384e38..8dfea7be 100644 --- a/Source.SDLSystem/SDL3_System.Win32.cs +++ b/Source.SDLSystem/SDL3_System.Win32.cs @@ -32,7 +32,13 @@ public ReadOnlySpan GetEntryPath(ReadOnlySpan name, int weight, bool foreach (var valueName in baseKey.GetValueNames()) { var value = baseKey.GetValue(valueName); - string absPath = Path.Combine(fontsPath, (string)value!); + string fontFileName = (string)value!; + string absPath = Path.IsPathFullyQualified(fontFileName) ? fontFileName : Path.Combine(fontsPath, fontFileName); + if (!Path.Exists(absPath)) { + Warning("Font '%s' refers to a missing file '%s'\n", valueName, fontFileName); + continue; + } + int i = 0; foreach (var fontfile in GetFontConditions(absPath)) { Entries.Add(new() {