Synthetic bold not rendered in Windows
I have installed the Roboto font set in two machines, with Windows 10 and Ubuntu 20.04
When using the font Roboto Light, the css attribute font-weight: bold
renders a bold typeface in Linux (I guess it's sintesized / faked), while produces no effect in Windows 10 with updated MSYS2.
The same goes in Windows with other fonts like Segoe UI Light. Bold attibute works normally in Windows when using a font-family like Roboto or Segoe UI (without Light), I guess because in that case the font is true and not sintesized.
This creates problems in GUI for apps like darktable, with different behaviour for Windows and Linux and difficulty to have a common css theme.
To reproduce:
- open gtk3-widget-factory
- open inspector
- put the following CSS
box*
{
font-family: "Roboto Light";
font-weight: bold;
}
or
box*
{
font-family: "Roboto Light";
font-weight: normal;
}
Examples (do not pay attention to different sizes, screens have different resolution)
1a) Windows - font-family: "Roboto Light" - font-weight: normal
1b) Windows - font-family: "Roboto Light" - font-weight: bold
2a) Linux - font-family: "Roboto Light" - font-weight: normal
2b) Linux - font-family: "Roboto Light" - font-weight: bold