简体   繁体   English

对于中文中文网站,我应该选择@ font-face或sIFR作为自定义字体吗?

[英]for site which language is chinese what should i choose @font-face or sIFR for custom fonts?

for site which language is chinese what should i choose @font-face or sIFR for custom fonts? 对于中文中文网站,我应该选择@ font-face或sIFR作为自定义字体吗? and which charset i should choose? 我应该选择哪个字符集?

Any typography, license free fonts suggestion would be appreciated. 任何字体,免费字体建议都将不胜感激。

Personally I'd avoid font embedding for Chinese. 我个人会避免将字体嵌入中文。 The fonts are just so big, it's a lot to download. 字体太大了,下载量很大。 And there are more potential issues with different anti-aliasing modes: many CJK fonts are likely to render horribly with anti-aliasing off, and the default horizontal-only anti-aliasing of ClearType applies poorly to ideographs that weren't specifically designed for it, as they tend to have many near-horizontal lines (which Latin typically doesn't). 而且,使用不同的抗锯齿模式还有更多潜在的问题:许多CJK字体可能会在禁用抗锯齿的情况下呈现出可怕的效果,并且ClearType的默认仅水平抗锯齿功能不适用于并非专门为此设计的表意文字,因为它们趋向于具有许多接近水平的线(拉丁语通常没有)。

So I'd go with the image replacement for now. 因此,我现在要进行图像替换。

The charset for any modern web application should be UTF-8. 任何现代Web应用程序的字符集应为UTF-8。 There may still occasionally be a need to encode to a legacy DBCS such as GB (maybe for sending mail to old mobile phones or some broken webmail services), but database content and normal web page serving should all be UTF-8. 有时仍可能需要编码为GB等传统DBCS(可能用于将邮件发送到旧手机或某些损坏的Webmail服务),但是数据库内容和常规网页服务应全部为UTF-8。

This post goes into detail on how to use Chinese fonts in general: 这篇文章详细介绍了一般如何使用中文字体:

http://www.kendraschaefer.com/2012/06/chinese-standard-web-fonts-the-ultimate-guide-to-css-font-family-declarations-for-web-design-in-simplified-chinese/ http://www.kendraschaefer.com/2012/06/chinese-standard-web-fonts-the-ultimate-guide-to-css-font-family-declarations-for-web-design-in-simplified-chinese/

font-family: Tahoma, Arial, Helvetica, "Microsoft YaHei New", "Microsoft Yahei", "微软雅黑", 宋体, SimSun, STXihei, "华文细黑", sans-serif;

She also mentions http://www.justfont.com/ which offers a way to use more non standard fonts. 她还提到了http://www.justfont.com/ ,它提供了一种使用更多非标准字体的方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM