在网络上,我应该使用什么字体来创建等效的跨平台体验?

发布于 2024-07-04 19:21:50 字数 127 浏览 9 评论 0原文

由于 Linux(及其变体)具有与 Windows 和 Mac OS X 完全不同的字体集,因此是否有人具有创建跨平台字体系列的经验 - 理想情况下找到与上述操作系统上常见字体相同的字体?

如果是这样,最好的路线是什么?

Because Linux (and its variants) have a completely different set of fonts than Windows and Mac OS X, is there anyone with any experience of creating cross-platform font families - ideally finding equivalents to the common fonts found on the aforementioned operating systems?

If so, what is the best route to take?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(9

小傻瓜 2024-07-11 19:21:50

TrueType 字体 (TTF) 通常适用于 Windows、Mac 和 Linux 平台。

http://en.wikipedia.org/wiki/TrueType

TrueType Fonts (TTF) will generally work on Windows, Mac, and Linux platforms.

http://en.wikipedia.org/wiki/TrueType

何处潇湘 2024-07-11 19:21:50

本文解释了最有机会的基本方法跨平台工作。 您必须考虑堆栈,这些堆栈是覆盖大多数平台的大致相似的字体集。

在大多数平台上,您总是可以安全地说“serif”,这将为您提供 Times New Roman 或类似的字体,或者说 sans-serif,这将为您提供 Helvetica/Arial 或类似的字体。 然后,正如文章所建议的,您可以进一步区分“宽”和“窄”分组。

您可以采取更“渐进增强”的方法来选择理想的字体,并为那些没有该字体的平台提供通用替代品。 然而,最终网页无法打印,您只能对字体选择进行近似控制。 您可以使用受良好支持的 CSS 属性(例如行间距)进行许多自定义排版。 但你永远无法说“使用这种字体”并让它在 Mac/Windows/Linux 上以相同的方式工作,更不用说移动设备、信息亭等了……

This article explains the basic approach that has the most chance of working cross-platform. You have to think in terms of stacks which are sets of broadly similar fonts which cover most platforms.

You are always safe saying 'serif' which will get you Times New Roman or similar or sans-serif which will get you Helvetica/Arial or similar on most platforms. Then as the article suggests you can go further and distinguish between 'wide' and 'narrow' groupings.

You can take a more 'progressive enhancement' approach choosing your ideal font and providing generic substitutes for those platforms which do not have it. However at the end of the day the web is not print and you only get approximate control over font choice. You can do a lot of custom typography using the well-supported CSS properties such as line-spacing. But you will never be able to say 'use this font' and have it work the identically even across Mac/Windows/Linux let alone mobile devices, kiosks etc...

泪眸﹌ 2024-07-11 19:21:50

TrueType 字体 (TTF) 通常适用于 Windows、Mac 和 Linux 平台。

谢谢杰森,但这不是我正在寻找的答案。 许多 Linux 发行版都附带了自己的字体,这些字体在名称上与 Mac/Windows 版本不同 - 可能是因为字体许可问题。

我希望得到一位具有设计相似字体经验的 Linux 用户(最好是开发人员)的回复。 我真的不想给 Ubuntu Firefox 用户“任何无衬线字体”。

TrueType Fonts (TTF) will generally work on Windows, Mac, and Linux platforms.

Thanks Jason, but this isn't the answer I'm looking for. Many Linux distributions come with their own fonts that are different in name to the Mac/Windows versions - presumably because of font licensing issues.

I'd like a response from a Linux user (preferably developer) who has experience with coming up with similar looking fonts. I really don't want to have to give Ubuntu Firefox users 'any sans-serif'.

錯遇了你 2024-07-11 19:21:50

Sitepoint 有一篇关于字体堆栈的优秀文章:

http://www.sitepoint。 com/article/eight-definitive-font-stacks/

Sitepoint has an excellent article on font stacks:

http://www.sitepoint.com/article/eight-definitive-font-stacks/

挽心 2024-07-11 19:21:50

嗯,这是一个很难的问题。

通常有 3 种字体以某种形式或其他形式始终受到支持。 这些字体是 Adob​​e Times、Adobe Helvetica 和 Adob​​e Courier。 问题是,虽然每个系统和代工厂都有这些系统的克隆,但它们的名称不同。 它们也不完全相同,但具有相同的指标。 Windows 三重奏:Arial、Times New Roman 和 Courier New 是它们的单色克隆。 在 Linux 上,adobe 以位图字体的形式提供这些字体,并以 URW Nimbus {Sans、Roman、Mono} 克隆形式提供轮廓。 然而,屏幕上的轮廓并不漂亮(它们在打印机上),因为它们缺乏提示。

解决方案是为网站选择多项选择。 由于微软在某个时候使“核心字体”可供重新分发,因此许多unix/linux系统确实有这些字体可用。 所以和他们一起去吧。 解放字体是 MS/monotype 字体的直接克隆,因此作为具有类似体验的替代品应该没问题。 然后选择“Helvetica”、“Times”和“Courier”,然后选择无衬线/衬线/单声道选项,将您交到用户手中。

Well, this is a hard question.

There are generally 3 fonts that are in some form or other always supported. These fonts are Adobe Times, Adobe Helvetica, and Adobe Courier. The problem is that while every system and foundry have a clone of these, they have different names. They are also not entirely the same, but have the same metrics. The windows trio: Arial, Times New Roman, and Courier New are the monotype clones of them. On linux these have been provided as bitmap fonts by adobe, and as outlines in form of the URW Nimbus {Sans, Roman, Mono} clones. The outlines however are not pretty on screen (they are on a printer) as they lack hinting.

The solution would be to go for a multichoice for websites. As microsoft has at some point made the "core fonts" available for redistribution, many unix/linux systems do have those fonts available. So go with them. The liberation fonts are straight clones of the MS/monotype fonts, so should go ok as alternatives with a similar experience. Then go for "Helvetica", "Times", and "Courier" before the sans/serif/mono choice that puts you in the user's hands.

心意如水 2024-07-11 19:21:50

大多数操作系统都支持 Microsoft 的Web 核心字体。 它们都与 OSX 捆绑在一起,并且我有理由确信它们可以在大多数 Linux 发行版上运行(或具有几乎相同的变体)。

Microsoft Typography 页面也很酷

Most OS'es have support for Microsoft's Core Fonts For the Web. They all come bundled with OSX, and I'm reasonably sure they'll work (or have near-identical variants) on most any linux distro.

The Microsoft Typography page is also pretty cool

久而酒知 2024-07-11 19:21:50

只是澄清一下:您正在寻找字体名称,使您的网站设计在 Linux 下查看时看起来与 Windows 和 Mac OS X 类似,您并不是想设计新字体,对吗?

(我以与 Jason Navarrete 相同的方式阅读你的问题,所以至少有两个人误解了你的问题。)

你正在寻找的字体名称可能类似于 RedHat 发布的解放字体

顺便说一句,“sans-serif”不会为用户提供“任何 sans-serif”,而是为用户提供他/她的首选 sans-serif - 这可能比您选择的更好。

Just to clarify: You are looking for names of fonts that will make your website-design look similar to Windows and Mac OS X when viewed under Linux, you are not looking to design new fonts, correct?

(I read your question in the same way that Jason Navarrete did, so at least two people misunderstood your question.)

The font names you are looking for might be something like the Liberation fonts that RedHat has released?

Incidently, 'sans-serif' doesn't give the user "any sans-serif", it gives the user his/her preferred sans-serif - which may arguably be better than one you pick.

苍景流年 2024-07-11 19:21:50

以下是 PC、Mac 和 Linux 上安装最多的字体的一些最新列表:

无衬线字体采样器和调查结果

衬线字体采样器和调查结果

希望这有助于您的决定!

Here are some good up-to-date listings of the most-installed fonts for PC, Mac, and Linux:

Sans serif font sampler and survey results

Serif font sampler and survey results

Hope this helps your decision!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文