Html Segoe UI 可以在 Mac 上使用吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14437881/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 05:06:11  来源:igfitidea点击:

Will Segoe UI work on Mac?

htmlcssfonts

提问by Hyman

Is Segoe UI font built into the browser? If my visitors are viewing from Mac, will it work properly or do I have to set the CSS url for that? My designer says it will work only when we set the URL, however I removed the

Segoe UI 字体是否内置于浏览器中?如果我的访问者正在从 Mac 查看,它会正常工作还是我必须为此设置 CSS url?我的设计师说它只有在我们设置 URL 时才有效,但是我删除了

@font-face
{
    font-family: "Segoe UI";
    src: url("fonts/Segoe UI.ttf") format("truetype");
    font-style: normal;
    font-weight: normal;
}

and it still works atleast on Windows 7. I don't have Mac though, to test.

它至少在 Windows 7 上仍然有效。不过我没有 Mac,要测试。

采纳答案by Andy

It will work on any computer with Office 2007, 2010, Vista or 7:

它适用于任何装有 Office 2007、2010、Vista 或 7 的计算机:

The Segoe UI font family can be obtained as part of Microsoft Office 2007, Microsoft Office 2010, Windows Vista or Windows 7.

Segoe UI 字体系列可以作为 Microsoft Office 2007、Microsoft Office 2010、Windows Vista 或 Windows 7 的一部分获得。

Will also work on XP if the user has downloaded a Windows Live package:

如果用户下载了 Windows Live 包,也可以在 XP 上运行:

Segoe UI is installed into Windows XP if the user installs Windows Live Messenger, or Windows Live Mail

如果用户安装 Windows Live Messenger 或 Windows Live Mail,Segoe UI 将安装到 Windows XP

Source

来源

For any computer that doesn't have the above, you will need to declare it with a @font-face

对于任何没有上述内容的计算机,您需要使用 @font-face

回答by Jukka K. Korpela

The Segoe UI font is not built into a browser. It is shipped with some Microsoft software. On a Mac, it is most probably not available, though a user might have acquired it separately or as part of some software package.

Segoe UI 字体未内置于浏览器中。它随一些 Microsoft 软件一起提供。在 Mac 上,它很可能不可用,尽管用户可能已单独或作为某个软件包的一部分获得它。

You should remove the @font-facerule and the font files uploaded onto a server. Segoe UI is protected by copyright, and it must not be used as a web font without permission from the copyright holder, Microsoft (which probably won't give a permission).

您应该删除@font-face规则和上传到服务器上的字体文件。Segoe UI 受版权保护,未经版权所有者 Microsoft(可能不会给予许可),不得将其用作 Web 字体。

You will need some other strategy, such as using another font either as the basic font or as a fallback font for visitors who don't have Segoe UI in their systems. The Google fontOpen Sans is rather similar to Segoe UI, and it's free (and it comes in 10 styles, including Book, Normal, Semi-Bold, Bold, and Extra-Bold weight).

您将需要一些其他策略,例如使用另一种字体作为基本字体或作为系统中没有 Segoe UI 的访问者的后备字体。在谷歌的字体打开三世是相当类似的Segoe UI,并且它是免费的(而且它有10种风格,包括图书,普通,半大胆,大胆,和特大胆的重量)。

回答by Ryan McDonough

Yes.

是的。

You may also want to provide the font in OTF as well.

您可能还想在 OTF 中提供字体。

You can find a list of available formats to provide the font in here: http://www.w3.org/TR/css3-webfonts/#font-reference

您可以在此处找到提供字体的可用格式列表:http: //www.w3.org/TR/css3-webfonts/#font-reference

You can find a converter to turn TTF into the varieties of web fonts here: http://www.font2web.com/

您可以在这里找到将 TTF 转换为各种网络字体的转换器:http: //www.font2web.com/