# Font rendering issue with custom/replaced UI font in Renoise

**URL:** <https://forum.renoise.com/t/font-rendering-issue-with-custom-replaced-ui-font-in-renoise/66648>\
**Category:** Help, Support & Bugs\
**Created:** [March 15, 2022, 6:09pm UTC](https://forum.renoise.com/t/font-rendering-issue-with-custom-replaced-ui-font-in-renoise/66648 "2022-03-15T18:09:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![NPC1](https://forum.renoise.com/letter_avatar/npc1/32/6_449c533f586939b6e5f246632a46421f.png) [@NPC1](https://forum.renoise.com/u/NPC1)\
**Post date:** [March 15, 2022, 6:09pm UTC](https://forum.renoise.com/t/font-rendering-issue-with-custom-replaced-ui-font-in-renoise/66648/1 "2022-03-15T18:09:14Z")

</div>

Font Renderbug or Control high Measuring Bug of Textout/ValueLabel Controls…

![image](https://forum.renoise.com/uploads/default/original/2X/e/eecf8ca0668f3605457d7955d9845038eb913337.png)

---

<div class="post-metadata">

**Author:** ![dspasic](https://forum.renoise.com/user_avatar/forum.renoise.com/dspasic/32/16007_2.png) [@dspasic](https://forum.renoise.com/u/dspasic)\
**Post date:** [March 15, 2022, 6:56pm UTC](https://forum.renoise.com/t/font-rendering-issue-with-custom-replaced-ui-font-in-renoise/66648/2 "2022-03-15T18:56:54Z")

</div>

could this be theme-related?  
i’m using one of default themes and value seems fine  
 ![Screenshot 2022-03-15 at 19.55.40](https://forum.renoise.com/uploads/default/original/2X/8/86dd0800ad1cd1800c2f690ffac60c0127256954.png)

btw those fonts look awesome 😃

---

<div class="post-metadata">

**Author:** ![NPC1](https://forum.renoise.com/letter_avatar/npc1/32/6_449c533f586939b6e5f246632a46421f.png) [@NPC1](https://forum.renoise.com/u/NPC1)\
**Post date:** [March 15, 2022, 8:06pm UTC](https://forum.renoise.com/t/font-rendering-issue-with-custom-replaced-ui-font-in-renoise/66648/3 "2022-03-15T20:06:51Z")

</div>

No, it has nothing to do with the Colortheme. Its that what i wrote →

> [@NPC1](#):
>
> Font Renderbug or Control high Measuring Bug of Textout/ValueLabel Controls…

You can Download this Font in Theming Discord and Test it. You will get this error in relation to your fontconfig Values generally or in specific size values combination. Check this other font with other size values → nearly same bug, but not complete the same.

[https://forum.renoise.com/uploads/default/original/2X/a/af422ef20536cb2956bda542c77fa3a6a9839bd0.png](https://forum.renoise.com/uploads/default/original/2X/a/af422ef20536cb2956bda542c77fa3a6a9839bd0.png)

---

<div class="post-metadata">

**Author:** ![Raul](https://forum.renoise.com/user_avatar/forum.renoise.com/raul/32/2484_2.png) [@Raul](https://forum.renoise.com/u/Raul)\
**Post date:** [March 15, 2022, 8:35pm UTC](https://forum.renoise.com/t/font-rendering-issue-with-custom-replaced-ui-font-in-renoise/66648/4 "2022-03-15T20:35:15Z")

</div>

Generally, text has a container that is a limited surface, with limited height and width. These surfaces are adjusted for the original text font. They are fixed dimensions.

If you use a slightly larger text font, some of the text will be cut off. This is because the container surface does not adapt to the size of the font.

If you use a custom text font, make sure the text font is the same or smaller than the original text font. Otherwise you will have text problems everywhere.

All this without counting on the scaling of the GUI. With it, more problems can arise.

---

<div class="post-metadata">

**Author:** ![taktik](https://forum.renoise.com/user_avatar/forum.renoise.com/taktik/32/3823_2.png) [@taktik](https://forum.renoise.com/u/taktik)\
**Post date:** [March 15, 2022, 9:30pm UTC](https://forum.renoise.com/t/font-rendering-issue-with-custom-replaced-ui-font-in-renoise/66648/5 "2022-03-15T21:30:26Z")

</div>

Using custom fonts isn’t really supported. It’s possible, and if it works thats great, but we haven’t really tweaked and fixed the UI for exactly those cases. As soon as we “officially” allow changing fonts we will.

* * *

There is a hidden, undocumented property called in the font config xml file though which nevertheless may help:

```auto
<?xml version="1.0" encoding="UTF-8"?>
<FontEngine doc_version="0">
  <Standard>
    <Size>10,10</Size>
    <FileName>Fonts/DejaVuSans.ttf</FileName>
    <AntiAlias>YES</AntiAlias>
    <BaselineOffset>-2</BaselineOffset>
  </Standard>
  ...
</FontEngine>

```

You maybe need a value of -1 or -2 to perfectly align your font.

---

<div class="post-metadata">

**Author:** ![NPC1](https://forum.renoise.com/letter_avatar/npc1/32/6_449c533f586939b6e5f246632a46421f.png) [@NPC1](https://forum.renoise.com/u/NPC1)\
**Post date:** [March 15, 2022, 10:01pm UTC](https://forum.renoise.com/t/font-rendering-issue-with-custom-replaced-ui-font-in-renoise/66648/6 "2022-03-15T22:01:00Z")

</div>

Thx, i will test this.

---

<div class="post-metadata">

**Author:** ![NPC1](https://forum.renoise.com/letter_avatar/npc1/32/6_449c533f586939b6e5f246632a46421f.png) [@NPC1](https://forum.renoise.com/u/NPC1)\
**Post date:** [March 16, 2022, 1:12am UTC](https://forum.renoise.com/t/font-rendering-issue-with-custom-replaced-ui-font-in-renoise/66648/7 "2022-03-16T01:12:25Z")

</div>

This helps on some controls where the text was not vertical aligned/centered in the textbox/labelcontrol before. For instance at the expanded combobox item text. But on the controls that was rendered correct before now its not good anymore. The groundproblem seems to be, that the container for the text are not aligned correct and pixel exact in the controls and the fixed orientation on originalfontsize like Raul wrote above.

happy tracking 🙂

some example.  
Combobox Control → selected Itemtext (Item[0]) was shown correct without the Baselineoffset param. now with the configparam the text showed up vertically to high

![image](https://forum.renoise.com/uploads/default/original/2X/f/fa5f44d87cc1269f581222a5bac13d45edee6caa.png)

Combobox Control → expanded itemtext (item[1…x] was shown to low in the corresponding item area. now with the configparam the text is showed fairly centered vertically.

![image](https://forum.renoise.com/uploads/default/original/2X/1/197404c6f38eeff5f88a74f98257fa8ca4bdaacd.png)
