views:

59

answers:

1

I'm using @font-face to display League Gothic on a website, but it's not showing up on Android 1.6. Here's my code, generated with Font Squirrel's @font-face generator

@font-face {
font-family: 'LeagueGothicRegular';
src: url('/fonts/League_Gothic-webfont.eot');
src: local('☺'), url('/fonts/League_Gothic-webfont.woff') format('woff'), url('/fonts/League_Gothic-webfont.ttf') format('truetype'), url('/fonts/League_Gothic-webfont.svg#webfont') format('svg');
font-weight: normal;
font-style: normal;

}

font-family:'LeagueGothicRegular',Impact,Charcoal,sans-serif;

It's not a big deal if @font-face isn't supported (I read that @font-face support is gone completely in Android 2). But League Gothic is quite condensed, so I would like to specify a better fallback font for Android than the default sans-serif so the design doesn't completely break.

Something like this would be perfect: http://www.droidfonts.com/info/droid-sans-condensed-fonts/

But I can't find a definitive list of the default fonts that come with Android, and the name I should use to reference them in CSS.

A: 

There you go : http://www.tutorialforandroid.com/2009/01/default-fonts-in-android.html

5 secs on Google :p

Hope I have helped. Regards from France ;)

Squ36
Hi,That tells me there are 3 default fonts in Android, but not much else. It seems to be more for developing native apps.I need the specific names of the fonts I can reference in CSS (if this is even possible in Android - do those 3 default fonts actually have "names"? Or does the browser just match any mention of "sans-serif" in a CSS font stack with its default sans font, etc)
Ben