Ubuntu – What’s the default serif font in firefox

browserfirefoxfonts

I'm trying to come up with a solid font stack that incorporates fonts typically found on an ubuntu install.

font-family=serif looks great, but for obvious reasons, this isn't appropriate for other operating systems.

What font does "serif" resolve to in the default install? I'm on firefox 6. Edit->Preferences->Content->Fonts & Colors/Advanced…->Serif is set to "serif" so it seems like it's using whatever ubuntu defines as the "serif" font. How can I tell what that is?

I'm on 11.04 (from a fresh install)

Thanks

Best Answer

The list is system dependent. To the get the list on your computer use fc-match and specify a font name to match against. The -s option gives a sorted list.

Here's the output from a 12.04 TLS Server listing serif, sans-serif, and monospace font styles to be thorough:

user@server:~$ fc-match -s serif
DejaVuSerif.ttf: "DejaVu Serif" "Book"
DejaVuSerif-Bold.ttf: "DejaVu Serif" "Bold"
n021003l.pfb: "Nimbus Roman No9 L" "Regular"
DejaVuSans.ttf: "DejaVu Sans" "Book"
DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"
s050000l.pfb: "Standard Symbols L" "Regular"
DejaVuSans-Bold.ttf: "DejaVu Sans" "Bold"
DejaVuSansMono-Bold.ttf: "DejaVu Sans Mono" "Bold"

user@server:~$ fc-match -s sans-serif
DejaVuSans.ttf: "DejaVu Sans" "Book"
DejaVuSans-Bold.ttf: "DejaVu Sans" "Bold"
n019003l.pfb: "Nimbus Sans L" "Regular"
DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"
DejaVuSerif.ttf: "DejaVu Serif" "Book"
s050000l.pfb: "Standard Symbols L" "Regular"
DejaVuSansMono-Bold.ttf: "DejaVu Sans Mono" "Bold"
DejaVuSerif-Bold.ttf: "DejaVu Serif" "Bold"

user@server:~$ fc-match -s mono
DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"
DejaVuSansMono-Bold.ttf: "DejaVu Sans Mono" "Bold"
n022003l.pfb: "Nimbus Mono L" "Regular"
DejaVuSans.ttf: "DejaVu Sans" "Book"
DejaVuSerif.ttf: "DejaVu Serif" "Book"
s050000l.pfb: "Standard Symbols L" "Regular"
DejaVuSans-Bold.ttf: "DejaVu Sans" "Bold"
DejaVuSerif-Bold.ttf: "DejaVu Serif" "Bold"