# No fonts available on Intel Clear Linux

**URL:** <https://forum.juce.com/t/no-fonts-available-on-intel-clear-linux/41019>\
**Category:** Linux\
**Created:** [July 31, 2020, 12:01pm UTC](https://forum.juce.com/t/no-fonts-available-on-intel-clear-linux/41019 "2020-07-31T12:01:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpo](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jpo/32/503_2.png) [@jpo](https://forum.juce.com/u/jpo)\
**Post date:** [July 31, 2020, 12:01pm UTC](https://forum.juce.com/t/no-fonts-available-on-intel-clear-linux/41019/1 "2020-07-31T12:01:38Z")

</div>

Hi,

On Intel Clear Linux (freshly installed), juce applications can’t find any default font. The issue seems to be that JUCE can’t locate the fonts.conf file.

Adding /usr/share/defaults/fonts/fonts.conf in the search path fixes the issue:

```
static std::unique_ptr<XmlElement> findFontsConfFile()
{
    static const char* pathsToSearch[] = { "/etc/fonts/fonts.conf",
                                           "/usr/share/fonts/fonts.conf",
                                           "/usr/share/defaults/fonts/fonts.conf"
    };

    for (auto* path : pathsToSearch)
        if (auto xml = parseXML (File (path)))
            return xml;

    return {};
}

```

(I don’t know if that is a good fix, or an ugly hack, tbh)
