Browse Source

Fonts: Avoid segfaulting on Linux when there are no installed fonts

pull/22/head
reuk 3 years ago
parent
commit
67e3326ecf
No known key found for this signature in database GPG Key ID: 9ADCD339CFC98A11
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_graphics/native/juce_linux_Fonts.cpp

+ 1
- 1
modules/juce_graphics/native/juce_linux_Fonts.cpp View File

@@ -156,7 +156,7 @@ private:
if (name.containsIgnoreCase (choice.name)) if (name.containsIgnoreCase (choice.name))
return Characteristics { name }.withStyle (choice.style); return Characteristics { name }.withStyle (choice.style);
return Characteristics { *names.begin() };
return Characteristics { names[0] };
} }
static Characteristics getDefaultSansSerifFontCharacteristics() static Characteristics getDefaultSansSerifFontCharacteristics()


Loading…
Cancel
Save