tags:

views:

530

answers:

4

Which font is the default "sans-serif" font in Linux? When I go in Windows 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?

+1  A: 

"sans-serif" is the name of a font on Linux as well.

Some pictures show how it and others render are here: http://andrew.triumf.ca/fonts/fonts.html

Paolo
I'm not sure how to read the data in that webpage. The font called "sans-serif" in Unix/Linux may be either Helvetica or Lucida?
proba
My bad, I mis-read that page when posting it. Also have discovered that sans-serif on my Linux (Ubuntu 9.10) is actually an alias for the DejaVu true type font.
Paolo
+2  A: 

there isn't such a thing as THE linux, each ships with a different set of fonts. you might already know that sans serif refers to a family of fonts...

Gnark
I know sans-serif is a family of fonts, but it seems that in Linux you can use that directly as the name of a font in Firefox.I'm not sure if it's always the same font, if it's defined in some place to which font it corresponds or if it depends on the distribution and every distribution puts an arbitrary font called "sans-serif" that may be anything.
proba
+2  A: 

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

pavium
A: 

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

$ fc-match sans-serif Vera.ttf: "Bitstream Vera Sans" "Roman"

$ fc-match monospace VeraMono.ttf: "Bitstream Vera Sans Mono" "Roman"

cnxpk