# Font sizing broken in SDL version

**URL:** https://discourse.cataclysmdda.org/t/font-sizing-broken-in-sdl-version/11615
**Category:** The Garage
**Created:** [March 27, 2016, 5:11am UTC](https://discourse.cataclysmdda.org/t/font-sizing-broken-in-sdl-version/11615 "2016-03-27T05:11:54Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Beanzy](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/beanzy/32/488_2.png) [@Beanzy](https://discourse.cataclysmdda.org/u/Beanzy)
#### Post date: [March 27, 2016, 5:11am UTC](https://discourse.cataclysmdda.org/t/font-sizing-broken-in-sdl-version/11615/1 "2016-03-27T05:11:54Z")

</div>

Since [experimental version #4574](http://ci.narc.ro/view/Cataclysm-DDA/job/Cataclysm-Matrix/4574/changes) if the console font size is different than the map font (or vice versa) in fonts.json, the UI will not refresh properly when using ASCII tiles. For example, parts of the advanced inventory will remain on screen if opened and closed.

So if:

`{
    "fontblending" : false,
    "fontwidth" : 8, <------------------------------THESE VALUES...
    "fontheight" : 16, <--------------------------/
    "fontsize" : 16,
    "typeface" : "Terminus",
    "map_fontwidth" : 8, <----------------------...ARE DIFFERENT FROM EACH OTHER
    "map_fontheight" : 16, <------------------/
    "map_fontsize" : 16,
    "map_typeface" : "Terminus",
    "overmap_fontwidth" : 8,
    "overmap_fontheight" : 16,
    "overmap_fontsize" : 16,
    "overmap_typeface" : "Terminus"
}`

Like this:

`{
    "fontblending" : false,
    "fontwidth" : 8, <------------------------------"FONTWIDTH" AND/OR "FONTSIZE" HERE...
    "fontheight" : 16, <--------------------------/
    "fontsize" : 16,
    "typeface" : "Terminus",
    "map_fontwidth" : 16, <----------------------...ARE DIFFERENT FROM "FONTWIDTH" AND/OR "FONTSIZE" HERE
    "map_fontheight" : 16, <------------------/
    "map_fontsize" : 16,
    "map_typeface" : "Terminus",
    "overmap_fontwidth" : 8,
    "overmap_fontheight" : 16,
    "overmap_fontsize" : 16,
    "overmap_typeface" : "Terminus"
}`

This basically prevents the use of differing console and map fonts if they require different width/height values to display properly.

---

<div class="post-metadata">

### Author: ![Mattaclysm](https://avatars.discourse-cdn.com/v4/letter/m/8e8cbc/32.png) [@Mattaclysm](https://discourse.cataclysmdda.org/u/Mattaclysm)
#### Post date: [April 3, 2016, 2:35am UTC](https://discourse.cataclysmdda.org/t/font-sizing-broken-in-sdl-version/11615/2 "2016-04-03T02:35:22Z")

</div>

I can reproduce this, and it’s a nasty bug, indeed. I’ve posted this as [an issue in the repository](https://github.com/CleverRaven/Cataclysm-DDA/issues/16033).

---

<div class="post-metadata">

### Author: ![Beanzy](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/beanzy/32/488_2.png) [@Beanzy](https://discourse.cataclysmdda.org/u/Beanzy)
#### Post date: [April 5, 2016, 7:56pm UTC](https://discourse.cataclysmdda.org/t/font-sizing-broken-in-sdl-version/11615/3 "2016-04-05T19:56:27Z")

</div>

SeanMirrsen seems to have an idea of what’s fundamentally causing it in the bug report [here.](https://github.com/CleverRaven/Cataclysm-DDA/issues/15881#issuecomment-205842526)

---

<div class="post-metadata">

### Author: ![Marte](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/marte/32/1224_2.png) [@Marte](https://discourse.cataclysmdda.org/u/Marte)
#### Post date: [April 6, 2016, 1:15pm UTC](https://discourse.cataclysmdda.org/t/font-sizing-broken-in-sdl-version/11615/4 "2016-04-06T13:15:57Z")

</div>

Yep. I use “retroasciifont10.png” as overmap typeface, and recently the map screen is a little buggy, with empty black areas that you can clean up moving around the cursor.

May be this is correlated…

---

<div class="post-metadata">

### Author: ![AdonaiJr](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/adonaijr/32/5893_2.png) [@AdonaiJr](https://discourse.cataclysmdda.org/u/AdonaiJr)
#### Post date: [April 10, 2016, 11:27pm UTC](https://discourse.cataclysmdda.org/t/font-sizing-broken-in-sdl-version/11615/5 "2016-04-10T23:27:49Z")

</div>

[quote=“Marte, post:4, topic:11615”]Yep. I use “retroasciifont10.png” as overmap typeface, and recently the map screen is a little buggy, with empty black areas that you can clean up moving around the cursor.

May be this is correlated…[/quote]

Same thing here, Marte. I rolled back to original overmap font because of this. Thanks for commenting.

---

<div class="post-metadata">

### Author: ![rremyroy](https://avatars.discourse-cdn.com/v4/letter/r/a183cd/32.png) [@rremyroy](https://discourse.cataclysmdda.org/u/rremyroy)
#### Post date: [April 15, 2016, 8:58pm UTC](https://discourse.cataclysmdda.org/t/font-sizing-broken-in-sdl-version/11615/6 "2016-04-15T20:58:20Z")

</div>

Recent changes with the experimental version should help with this issue. Try updating to the latest version and see if it fixes it.

---

<div class="post-metadata">

### Author: ![Beanzy](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/beanzy/32/488_2.png) [@Beanzy](https://discourse.cataclysmdda.org/u/Beanzy)
#### Post date: [April 16, 2016, 1:53am UTC](https://discourse.cataclysmdda.org/t/font-sizing-broken-in-sdl-version/11615/7 "2016-04-16T01:53:44Z")

</div>

> [@rremyroy](#):
>
> Recent changes with the experimental version should help with this issue. Try updating to the latest version and see if it fixes it.

The new update does indeed fix most of the refresh issues.

However, I did still run into two refresh bugs when I tested the latest experimental:

1. The menu that pops up so you can choose what materials to use when crafting doesn’t fully refresh when it disappears.

2. Vehicle headlights cause a black “box” to appear on screen when turned on, overhead lights don’t seem to have this issue.

Both issues went away when I set the console and map font values to be the same, so it seems to be the same bug.

---

<div class="post-metadata">

### Author: ![Marte](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/marte/32/1224_2.png) [@Marte](https://discourse.cataclysmdda.org/u/Marte)
#### Post date: [April 18, 2016, 4:16pm UTC](https://discourse.cataclysmdda.org/t/font-sizing-broken-in-sdl-version/11615/8 "2016-04-18T16:16:08Z")

</div>

Plus: the map issue with custom overmap typeface seems to be fixed, but the problem is still present in debug section. For example, yesterday I’ve manually spawned a “bandit camp” to ovveride the infamous “Old Guard” bug… And “overmap edit” screen was a real mess, using “retroasciifont10.png” (black blocks + menù pieces here and there…).
