5.4 module name readability

darktable 5.4 on Windows 11. I have a 2.5k display running at the native resolution and 100% scaling. The extra text AFTER the module name is hard to read (e.g. auto, scene referred default, 1, basic colorfulness vibrant colors, etc).

all of the other text in the rest of the user interface seems to render fine.

1 Like

i just noticed this but mine isn’t yellow

Search the forum for
user.css

Have fun!
Santa Claes in Lund, Sweden

Increasing the font size in preferences may help with your display.

2 Likes

Something changed between 5.2 and 5.4. I installed darktable 5.2 from portableapps.com.

5.4 was a straight upgrade from 5.2.1. AFAIK, I didn’t set any customization that would affect this. It’s (mostly) an OOTB setup. Windows 11.

Here is the difference. active modules for the same image:
5.2 (left) vs. 5.4 (right)

it seems you’re using different fonts. maybe portableapps handles these differently.

1 Like

No. I was using the full install of 5.2.1 and had no issues reading the extra descriptions of the modules. Poor readability of 5.4.0 I noticed in my first edit after upgrade. The portable apps version was just a way of going back in time to be able to capture how I remember it looked.

Perhaps one of these themes will help you:

1 Like

I’m seeing this problem on Windows as well–it’s not unreadable but looks bad. A larger font increases readability but still looks fairly bad, especially because it messes up other UI elements. The font hinting isn’t working–the vertical lines are thinner than the horizontal lines.

image

I fixed this by changing the font in user.css (or adding it to the CSS override in the darktable settings, which is the same thing):

#iop-module-name
{
  font-size: 0.9em;
  font-family: Arial, sans-serif;
}

I’m not a web developer, but if I can get it looking better I’d like to fix this for everyone with a PR. It still looks too bold. Is there a way to restrict a CSS change to Windows and is there a consensus about which fonts are best in this situation? Here’s how it looks with the above change:

image

2 Likes

Do you have the correct font installed? I can not remember if it is Roboto or Noto.

I had Noto already and I’ve just installed Roboto. It didn’t solve the issue.

@akgt94 If you paste the above css code into “Settings → General → modify selected theme”, enable the checkbox, and restart DT, does it fix the problem?

Does the current preset name look bad for any other Windows 11 users? It would be good to confirm that it’s not some installation problem.

I don’t see the issue on OpenSUSe tumbleweed, and I use the default theme and fonts.

Perhaps something in the (system) font rendering settings, notably anti-aliasing?

I don’t have problems reading the small text in 5.4, no noticeable change to 5.2. Windows 11, 4K screen, Roboto installed

grafik

My settings

The installed CSS has no effect on fonts.

I use a 43 inch 4K monitor for editing and have no problems with fonts which I have reduced to size 10. I even put DT on my 14" laptop screen which is 1920x1080 and I don’t have problems. But if others are having a problem and it can be improved so be it.

For those that have this problem, can you test with the css changes? It might be the best compromise with windows and linux. Similar to @finestructure suggestion. I will push a PR if this works.

#iop-module-name
{
  font-size: 0.8em;
}

I cant reproduce in my system, so please provide a screenshot if you are having this problem.

I’ve been experimenting more, and the problem is that sub-pixel hinting is active but not really visible with this color scheme. The simplest fix is to increase the font weight:

#iop-module-name
{
  font-weight: normal;
}

The next problem is that the kerning isn’t great. By trying multiple CSS style lines, I determined sans-serif is active by default.

image

I think this is the default darktable font:

That line is strange: first you tell darktable to use the system sans serif font and then you give “Arial Unicode MS” as a fallback. Usually, the order is inversed (first the font you really want to use, then the system font of that falily as fallback.

I suppose arial is a windows font and this targets all operating systems

That’s why you would first specify a system-specific font and then the system default font. As it is now, “Arial Unicode MS” will not be used even if it’s present (unless it is set as system default…)

On a system where the Arial font isn’t available, the system default will be used whatever the order in the specification…

You are 100% right. While I was digging for this issue, I noticed this problem and others too. The file called darktable.css has most of the config, then darktable elegant darker (iirc) then has a modification for box with more fonts options. Then all the other themes seem to reference that theme.

The list of fonts for box in that theme are outdated. Im testing changes. I might split this into two PR, a bug fix for 5.4.1 and proper fix for 5.6.

Windows 10 default font is Segoe IU.

1 Like