Browse Source

Linux Fonts: Add extra default font path

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

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

@@ -23,7 +23,8 @@ static std::unique_ptr<XmlElement> findFontsConfFile()
{
static const char* pathsToSearch[] = { "/etc/fonts/fonts.conf",
"/usr/share/fonts/fonts.conf",
"/usr/local/etc/fonts/fonts.conf" };
"/usr/local/etc/fonts/fonts.conf",
"/usr/share/defaults/fonts/fonts.conf" };
for (auto* path : pathsToSearch)
if (auto xml = parseXML (File (path)))


Loading…
Cancel
Save