CSS:Fixedsys字体不会出现在Google Chrome浏览器中 [英] CSS: Fixedsys font won't appear in Google Chrome browser

查看:104
本文介绍了CSS:Fixedsys字体不会出现在Google Chrome浏览器中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个供个人使用的Web应用程序,并且在我的Vista机器上安装了等宽字体 Fixedsys ,我想在textareas(显示脚本)中使用它.可以在Firefox中使用例如

I'm creating a web app for personal use, and having the monospace font Fixedsys installed on my Vista machine, I would like to use it inside textareas (to show scripts). This works fine in Firefox using e.g.

#textfield {
    font-family: fixedsys, consolas, monospace;
}

...但是在Google Chrome浏览器中,fixedsys被忽略,而从字体列表中选择下一个(此处为consolas).

... but in the Google Chrome browser, fixedsys is ignored and the next from the font list (here: consolas) is picked instead.

当我在Firefox中遇到其他一些小问题时,我正在考虑为此切换到Chrome,但是有人可以告诉我如何在Chrome中加载Fixedsys吗? (我什至无法在Chrome选项菜单中找到它...)

As I'm running into some other minor problems with Firefox, I'm pondering switching to Chrome for this, but can anyone tell me how to load Fixedsys in Chrome? (I can't even find it in the Chrome options menu...)

谢谢!

推荐答案

一个奇怪的错误,可能是因为Fixedsys是系统字体并且不在您的字体目录中?

A strange bug, perhaps it is because Fixedsys is a system font and not present in your fonts directory?

在W3C CSS2规范中也发现了这一点:

Also found this in the W3C CSS2 spec:

系统字体只能整体设置;也就是说,字体系列,大小,粗细,样式等都是同时设置的.然后,可以根据需要单独更改这些值.

System fonts may only be set as a whole; that is, the font family, size, weight, style, etc. are all set at the same time. These values may then be altered individually if desired.

这篇关于CSS:Fixedsys字体不会出现在Google Chrome浏览器中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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