问题描述
我正在创建一个供个人使用的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:
这篇关于CSS:Fixedsys字体不会出现在Google Chrome浏览器中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!