# Different look in linux due to recent font changes

**URL:** <https://forum.juce.com/t/different-look-in-linux-due-to-recent-font-changes/51194>\
**Category:** General JUCE discussion\
**Created:** [April 26, 2022, 10:23pm UTC](https://forum.juce.com/t/different-look-in-linux-due-to-recent-font-changes/51194 "2022-04-26T22:23:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![stephanecharette](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/stephanecharette/32/83_2.png) [@stephanecharette](https://forum.juce.com/u/stephanecharette)\
**Post date:** [April 26, 2022, 10:23pm UTC](https://forum.juce.com/t/different-look-in-linux-due-to-recent-font-changes/51194/1 "2022-04-26T22:23:11Z")

</div>

Something changed in the last few weeks in regards to fonts on Linux. Last time I did a git pull was March 30 to get to v6.1.6. Application has looked like this for the past few years:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/8/86f8d89d2d324f353400be501edb26625957d453.png)

With the git pull I did today, it now looks like this:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/3/3e3eaf6b1cc8a6ae084c6036e9dff69605376404.png)

I looked at BREAKING-CHANGES.txt but did not see anything listed. I do see some recent changes in  
modules/juce\_graphics/native/juce\_linux\_Fonts.cpp but nothing stands out as either the cause of the difference or the solution.

---

<div class="post-metadata">

**Author:** ![stephanecharette](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/stephanecharette/32/83_2.png) [@stephanecharette](https://forum.juce.com/u/stephanecharette)\
**Post date:** [April 26, 2022, 11:34pm UTC](https://forum.juce.com/t/different-look-in-linux-due-to-recent-font-changes/51194/2 "2022-04-26T23:34:46Z")

</div>

From what I can tell, on Ubuntu the default that JUCE previously used until very recently is “Liberation Sans”. The new default now seems to be an italic version of “DejaVu Sans”.

To get back to the old/normal font, call this in your application’s initialize() method:

```
Desktop::getInstance()
    .getDefaultLookAndFeel()
    .setDefaultSansSerifTypefaceName("Liberation Sans");

```

To provide another example value that you can use, try this to see the difference:

```
Desktop::getInstance()
    .getDefaultLookAndFeel()
    .setDefaultSansSerifTypefaceName("Ubuntu");

```

To the maintainers of JUCE: can we get back the old default? Or was this an intentional change, to use a heavy italic font as the new default font?

---

<div class="post-metadata">

**Author:** ![KottVV](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/kottvv/32/14169_2.png) [@KottVV](https://forum.juce.com/u/KottVV)\
**Post date:** [April 27, 2022, 2:00am UTC](https://forum.juce.com/t/different-look-in-linux-due-to-recent-font-changes/51194/3 "2022-04-27T02:00:19Z")

</div>

I think it’s related

> [@Wrong default font on Linux when bitstream vera is installed](https://forum.juce.com/t/wrong-default-font-on-linux-when-bitstream-vera-is-installed/50884):
>
> Hi, On Ubuntu 21.10, if the ttf-bitstream-vera package is installed, then “Bitstream Vera” is selected by JUCE as the default sans serif font. However JUCE picks the bold+italic version, instead of the regular one. How to reproduce: compile and launch the DemoRunner from develop branch, all text is bold and italic.

---

<div class="post-metadata">

**Author:** ![stephanecharette](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/stephanecharette/32/83_2.png) [@stephanecharette](https://forum.juce.com/u/stephanecharette)\
**Post date:** [April 27, 2022, 2:03am UTC](https://forum.juce.com/t/different-look-in-linux-due-to-recent-font-changes/51194/4 "2022-04-27T02:03:54Z")

</div>

Thanks, that is interesting to know, and does sound similar. But that says it was fixed 16 days ago. I just did a git pull a few hours ago and ran into this for the first time. I’m on Ubuntu 20.04 if that is important.

---

<div class="post-metadata">

**Author:** ![nicolasdanet](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/nicolasdanet/32/56_2.png) [@nicolasdanet](https://forum.juce.com/u/nicolasdanet)\
**Post date:** [April 27, 2022, 5:19am UTC](https://forum.juce.com/t/different-look-in-linux-due-to-recent-font-changes/51194/5 "2022-04-27T05:19:33Z")

</div>

I think it is same problem as there:

> [@Warnings on Ubuntu 20.04](https://forum.juce.com/t/warnings-on-ubuntu-20-04/50959):
>
> With latest changes on develop branch, i get new warnings on Ubuntu 20.04 build. Compiling Main.cpp Compiling BinaryData.cpp Compiling include\_juce\_core.cpp Compiling include\_juce\_data\_structures.cpp Compiling include\_juce\_events.cpp Compiling include\_juce\_graphics.cpp In file included from /home/jojo/JUCE/modules/juce\_graphics/juce\_graphics.cpp:161, from ../../JuceLibraryCode/include\_juce\_graphics.cpp:8: /home/jojo/JUCE/modules/juce\_graphics/native/juce\_linux\_Fonts.cpp: In mem…

---

<div class="post-metadata">

**Author:** ![t0m](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/t0m/32/16413_2.png) [@t0m](https://forum.juce.com/u/t0m)\
**Post date:** [April 27, 2022, 8:20am UTC](https://forum.juce.com/t/different-look-in-linux-due-to-recent-font-changes/51194/6 "2022-04-27T08:20:59Z")

</div>

This was fixed on the `juce7` branch. I’ll cherry pick the corresponding commit over the the `develop` branch too.

---

<div class="post-metadata">

**Author:** ![nicolasdanet](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/nicolasdanet/32/56_2.png) [@nicolasdanet](https://forum.juce.com/u/nicolasdanet)\
**Post date:** [April 28, 2022, 7:30am UTC](https://forum.juce.com/t/different-look-in-linux-due-to-recent-font-changes/51194/7 "2022-04-28T07:30:18Z")

</div>

Fixed now for me on develop branch also, thanks.
