Virtual Basic

Virtual Basic a new approach
to code Applesoft Basic for Apple 2
http://virtualbasic.org
Dernières infos :

Best font family for linux, mac and linux

mercredi 18 novembre 2009 [18:57:22]

Doing a research about the compatibility of font families (font-family in CSS) I came across this reference on the W3C http://www.w3.org/TR/CSS21/fonts.html

Therefore I made a first small summary.

/ * Http://www.w3.org/TR/CSS21/fonts.html fonts recommended for Linux / Windows / Mac * /

/* serif */
body{font-family:"Times New Roman",Bodoni,Garamond,"Minion Web","ITC Stone Serif","MS Georgia","Bitstream Cyberbit";}
/* sans-serif */
body{font-family:"MS Trebuchet","ITC Avant Garde Gothic","MS Arial","MS Verdana",Univers,Futura,"ITC Stone Sans","Gill Sans","Akzidenz Grotesk",Helvetica;}
/* monospace */
body{font-family:Courier,"MS Courier New",Prestige,"Everson Mono";}
/* cursive */
body{font-family:"Caflisch Script","Adobe Poetica",Sanvito,"Ex Ponto","Snell Roundhand",Zapf-Chancery;}
/* fantasy */
body{font-family:"Alpha Geometrique",Critter,Cottonwood,"FB Reactor",Studz;}

But testing those families of fonts have been some surprises, font sizes unequal, tricks, fonts do not exist etc.., in the other hand, order fonts is important and gives rendered very different between platforms.

So I selected my fonts to have made roughly the same as the OS and basing myself also http://www.codestyle.org/css/font-family/index.shtml is to say on the observation frequency of fonts used on the platforms.

So it gives from the fonts most used on most OS (90%) and in the order of fonts in the declaration font-family:

/ * Http://www.codestyle.org/css/font-family/index.shtml fonts recommended for Linux / Windows / Mac * /

/* serif */
body{font-family:Georgia,"URW Palladio L",Times,"Palatino Linotype ","URW Bookman L",Sylfaen,"Times New Roman","Century Schoolbook L","Bitstream Charter",serif;}
/* sans-serif */
body{font-family:Tahoma,"Trebuchet MS","Nimbus Sans L",Arial,"Franklin Gothic Medium","Helvetica Neue",Geneva,Verdana,"URW Gothic L","Gill Sans",Helvetica,"Lucida Sans Unicode","Arial Black","Lucida Grande","Microsoft Sans Serif",sans-serif;}
/* monospace */
body{font-family:Monaco,"Lucia Console","DejaVu Sans Mono","Courier 10 Pitch","Nimbus Mono L","Courier New",Courier",monospace;}
/* cursive */
body{font-family:"Apple Chancery","URW Chancery L","Comic Sans MS",cursive;}
/* fantasy */
body{font-family:Impact,fantasy;}

These lists of fonts work fairly well but are a bit long and I noticed some differences in size, so I deleted some fonts and reorganized the order.

/* Http://logz.org/font-family/font.php fonts recommended for Linux / Windows / Mac */

/* serif */
body{font-family:"URW Palladio L","URW Bookman L","Century Schoolbook",Georgia,Times,"Times New Roman","Palatino Linotype",serif;}
/* sans-serif */
body{font-family:"Nimbus Sans L","URW Gothic L",Verdana,Tahoma,Helvetica,"Lucida Grande",Geneva,"DejaVu Sans","Microsoft Sans Serif",sans-serif;}
/* monospace */
body{font-family:"Bitstream Vera Sans Mono","Courier 10 Pitch","Nimbus Mono L",Monaco,"Courier New",Courier,"OCR A Extended","DejaVu Sans Mono","Lucida Console",monospace;
/* cursive */
body{font-family:"Domestic Manners","URW Chancery L","Brush Script MT",Zapfino,"Apple Chancery","Bradley Hand ITC","Monotype Corsiva","Comic Sans MS",cursive;}
/* fantasy */
body{font-family:"Marked Fool",Junkyard,Balker,Papyrus,Haettenschweiler,Impact,fantasy;}

The display is correct on the major bones and browsers.

To see what happens on your computer http://logz.org/font-family/font.php

To know what fonts web intallées on your computer

Tested on linux xubuntu, Win XP, win7 and mac.