在Android上CSS字体 [英] CSS fonts on Android

查看:191
本文介绍了在Android上CSS字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用 @字体面来显示联盟的哥特式在网站上,但它没有出现在Android 1.6。这是我的code,与字体松鼠的@字体面发生器产生

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;

这不是一个大问题,如果 @字体面不支持(我读 @字体面支持是完全消失在Android中2)。但是,联赛哥特式是相当凝聚,所以我想指定一个更好的后备字体为Android而不是默认的无衬线这样的设计并没有完全打破。

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.

这样的事情将是完美的: <一href="http://www.droidfonts.com/info/droid-sans-condensed-fonts/">http://www.droidfonts.com/info/droid-sans-condensed-fonts/

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

但我找不到来与Android的默认字体的最终名单,名字我应该用引用它们的CSS。

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.

修改 这些问题的答案到目前为止忽略了一点(或我的措辞问题严重) - 我后是附带Android系统的字体列表。东西这样为Android。

EDIT The answers so far missed the point (or I worded the question badly) - what I'm after is a list of system fonts that ship with Android. Something like this for Android.

推荐答案

这是我看到的安装在我的Andr​​oid(2.2)系统文件的字体:

The fonts that I see installed in my Android (2.2) system files are:

  • Clockopia.ttf
  • DroidSans-Bold.ttf
  • DroidSans.ttf
  • DroidSansArabic.ttf
  • DroidSansFallback.ttf
  • DroidSansHebrew.ttf
  • DroidSansMono.ttf
  • DroidSansThai.ttf
  • DroidSerif-Bold.ttf
  • DroidSerif-BoldItalic.ttf
  • DroidSerif-Italic.ttf
  • DroidSerif-Regular.ttf
  • Clockopia.ttf
  • DroidSans-Bold.ttf
  • DroidSans.ttf
  • DroidSansArabic.ttf
  • DroidSansFallback.ttf
  • DroidSansHebrew.ttf
  • DroidSansMono.ttf
  • DroidSansThai.ttf
  • DroidSerif-Bold.ttf
  • DroidSerif-BoldItalic.ttf
  • DroidSerif-Italic.ttf
  • DroidSerif-Regular.ttf

这篇关于在Android上CSS字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆