Helvetica在Windows操作系统上渲染为Arial [英] Helvetica renders as Arial on Windows OS

查看:346
本文介绍了Helvetica在Windows操作系统上渲染为Arial的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的网站上, http://helvetitee.com ,我有以下字体堆栈:

  font-family:helvetica neue,helvetica,nimbus-sans; 

从TypeKit中提取Nimbus Sans(网络字体)。 / p>

在Windows计算机上,不管浏览器如何,用户都显示为Arial。似乎Helvetica被Windows渲染为Arial,而不是回到Nimbus(这是一个Helvetica克隆,因此更喜欢Arial)。



有办法,其他比OS嗅探,以防止这种情况?这是一个已知的问题吗?

解决方案

Windows替代了Arial,而不是Helvetica。为Helvetica。 (特别是Helvetica;不是Helvetica Neue。)一个简单的方法看到这是声明 font-family:Helvetica,Courier 。在Windows平台上的浏览器然后使用Arial,而不是Courier(因为他们应该)。



这可以通过编辑Windows注册表更改,但作为Web作者,做任何事情(除了尝试通过浏览器嗅探操作系统嗅探)。这是一个老问题(至少可以追溯到Windows 3,我想),虽然不是很知名。


On my site, http://helvetitee.com, I have the following font stack:

font-family: "helvetica neue", helvetica, nimbus-sans;

Nimbus Sans (a web font) is pulled in from TypeKit.

On Windows machines, regardless of the browser, the user is shown Arial. It seems that Helvetica is rendered as Arial by Windows instead of falling back to Nimbus (which is an Helvetica clone and therefore preferable to Arial).

Is there a way, other than OS sniffing, to prevent this? Is it a known issue? It seems to be something of a liberty for Windows to just assume it's OK to show Arial instead of Helvetica.

解决方案

Windows substitutes Arial for Helvetica. (Specifically Helvetica; not Helvetica Neue.) A simple way to see this is to declare font-family: Helvetica, Courier. Browsers on Windows platforms then use Arial, not Courier (as they should).

This can be changed by editing Windows registry, but as a web author, you can’t do anything about it (apart from attempts at OS-sniffing via browser-sniffing). It is an old issue (dating back at least to Windows 3, I think), though not very widely known.

这篇关于Helvetica在Windows操作系统上渲染为Arial的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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