I’m having an issue with difference in font size between windows and Linux, using the “Europa Full Map” module. The module designer has set a “Factors” label which is a text label added to the bottom of each counter. The font that has been chosen for this label is “Sans Serif” size 24. Here’s a screen shot of the relevant part of the prototype definition:
On the designers screen (he is using Windows), this makes the text label fit the space on the counter like this:
However on my system, which runs Linux, the text appears in a noticeably larger font, and overflows the available space on the counter, like this:
Is there anything that I can do to make sure that I’m using exactly the same font and font size as the designer? I suspect that between the two systems, “Sans Serif” is a font class and the actual font being picked on each system is different. Can we force the use of a specific (truetype or other) font?
Now I’m not sure if “Roboto” is the correct font but it seems to fit better and be closer to the font in use on Windows. I guess that Windows might use Arial but that’s a Microsoft font and not free. Roboto is by Google and is free.
I guess the Sans Serif font used is set by your theme - depending on the GUI you use. For GNOME, you can probably also set it via gnome-tweaks.
Free (as in beer and speech) alternatives to Arial (which is free - as in beer - to use and installs with sudo apt install ttf-mscorefonts-installer) are
Liberation Sans (same metric as Arial) - apt install fonts-liberation
OpenSans - apt install texlive-fonts-extra
Noto (newer version of Roboto) - apt install fonts-noto
Arimo (same metric as Arial) apt install fonts-croscore
… and countless others
Note that you may be able to do a per-application setting with something like