Chrome 中的字体不显示
我在 Chrome 中遇到了一些字体问题。我认为这就是我指定的方式。我有:
font-family: "Myriad Pro", Tahoma, Arial;
这在 FF、IE 和 Safari 中运行良好,但 Chrome 只向我显示奇怪的符号。
使用字体系列:Tahoma、Arial;适用于所有浏览器,包括 Chrome。但我至少需要 Myriad Pro 来支持 IE、FF 和 Safari,我该如何实现呢?
谢谢你!
I am having a little issue with a font in Chrome. I think it's the way I'm specifying it. I have:
font-family: "Myriad Pro", Tahoma, Arial;
That works well in FF, IE and Safari, but Chrome just shows me weird symbols.
Using font-family: Tahoma, Arial; works well for all the browsers, including Chrome. But I need Myriad Pro at least for IE, FF and Safari, how can I achieve this?
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
Myriad Pro 不是网络字体。因此,Myriad Pro 并非在所有浏览器中都可用(而且并非所有计算机都安装了该字体),最终您将得到很多只会看到 Tahoma 的访问者。
尝试使用@font-face。我推荐 FontSquirrel 的 @font-face 生成器。您所要做的就是上传字体,然后它会生成您所需的文件和 CSS,以便在几乎所有浏览器(甚至 IE6)中获得外观一致的字体!
Myriad Pro is NOT a web font. Because of this, Myriad Pro is not available in all browsers (also, not all computers have the font installed), you are going to end up with a lot of visitors who will only see Tahoma.
Try using @font-face. I recommend FontSquirrel's @font-face Generator. All you have to do is upload your font, then it generates the files and CSS you need to get a pretty consistent looking font in nearly all browsers, even IE6!
从 css 堆栈中删除 Myriad 字体。刷新您的页面。然后再次将此字体添加回堆栈并刷新页面。我不知道为什么,但这对我有用。
Remove Myriad font from stack in css. Refresh your page. Then add this font back to your stack again and refresh your page. I don't know why, but it worked for me.
你用的是Mac吗?我发现了这个:http://www.mactalk.com .au/56/83001-font-issue-google-chrome.html
Are you on a mac? I found this: http://www.mactalk.com.au/56/83001-font-issue-google-chrome.html
不应该吗
should it not be
这也可能是浏览器由于某种原因无法访问字体的情况。我以前在 Opera 上也遇到过这种情况,它只能访问几种字体,但我测试过的其他浏览器都不能正常看到的特殊字体。更新\重新安装从来没有为我解决这个问题,但从 Vista 升级到 7 后问题就消失了。
This also might be case of the browser for some reason not being able to access the Font. Happened before for me on Opera, it would only be able to access a few fonts, but none of the special fonts I tested that other browser could see just fine. Updates \ reinstall never resolved it for me, but after upgradin from Vista to 7 the problem went away.