Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linux Firefox default sans-serif font

Which font is the default sans-serif font in Linux? When I go in Windows in Firefox to Options > Font > Advanced I can see that the default sans-serif font is Arial, but in Linux it only shows sans-serif as a font by itself.

Any idea how can I check which sans-serif font is this?

like image 745
proba Avatar asked Jan 28 '10 10:01

proba


3 Answers

If fonts are handled by fontconfig then they are defined in /etc/fonts. It seems the command fc-match does the mapping from 'serif', 'sans-serif', etc. to the actual fonts:

$ fc-match sans-serif
Vera.ttf: "Bitstream Vera Sans" "Roman"
$ fc-match monospace
VeraMono.ttf: "Bitstream Vera Sans Mono" "Roman"
like image 86
cnxpk Avatar answered Nov 09 '22 21:11

cnxpk


The sans-serif font will be an open-source alternative to the proprietary fonts you may be accustomed to.

As a generalisation, Linux distributions have support for TrueType fonts like Lucida, Helvetica and Arial, but you have to download them separately - they don't come pre-installed.

for example, see this link

like image 36
pavium Avatar answered Nov 09 '22 22:11

pavium


Most modern GNU/Linux distributions, like OpenSuSE and Fedora for example, use fontconfig for fonts management and configuration. The configuration is stored in /etc/fonts/ and it's sub-directories. There will be a mapping file there, but the name of the file varies from distribution to distribution and from version to version. For example in OpenSuSE 12.3 you can find default mappings in /etc/fonts/conf.d/58-suse-post-user.conf

like image 1
Czar Avatar answered Nov 09 '22 20:11

Czar