Hi all,
I was playing around with fonts in the CSS. I have noticed that for some reason darktable will just refuse to use some fonts that, to my unexperienced eye, look just like the other ones.
The OS comes preinstalled with a bunch of fonts, including
- DIN Condensed
Additionally, I downloaded the following fonts from fonts.google.com:
- Ubuntu
- Ubuntu Condensed
- Cabin Condensed
- Barlow Condensed
- Saira ExtraCondensed
After installing the new fonts I ran
$ /opt/homebrew/bin/fc-cache -frv
to refresh the font cache, and restarted the application to make sure that it would see the new fonts.
I am using the following stanza in user.css to change the font used for panel headings:
#iop-panel-label,
#lib-panel-label
{
font-family: "Ubuntu Condensed";
}
Of the fonts listed above, the only ones that work are Ubuntu and Ubuntu Condensed. If I use any of the other font, it just falls back on whatever is the default for those elements.
I thought that maybe I was misspelling the name of the fonts, but I am using the same name returned by fontconfig, e.g, Saira ExtraCondensed in the following case:
$ /opt/homebrew/bin/fc-match "Saira ExtraCondensed"
SairaExtraCondensed-Regular.ttf: "Saira ExtraCondensed" "Regular"
I also ran darktable with GTK_DEBUG=interactive, and verified in the Visual tab that the fonts are listed, so they should definitely be available to the application.
I then thought that maybe the issue was with some of the fonts not having a āregularā variant, as maybe darktable would filter them for some reason. But this cannot be the case, as of all the fonts listed above only āDIN Condensedā does not have a regular variant.
And by the way, I tried all the following and they do not work either:
#iop-panel-label,
#lib-panel-label
{
font-family: "DIN Condensed";
font-weight: bold
}
#iop-panel-label,
#lib-panel-label
{
font-family: "DIN Condensed Bold";
font-weight: bold;
}
I would exclude that the weight is an issue, as if I specify
#iop-panel-label,
#lib-panel-label
{
font-family: "Ubuntu Condensed";
font-weight: bold;
}
the correct font is used (albeit not in bold, as that font does not have a bold variant).
Am I overlooking something, is it a known limitation or is it an actual bug?
Thanks,