The Chinese font of font-family in CSS

Source: Internet
Author: User
Tags ming

Speaking of CSS in the font-family, I believe a lot of friends often use, but do not know when you encounter the reference to Chinese fonts when you will write?
Recent special attention has been paid to discovering the most commonly used basic three types:

    1. 1, direct Chinese;
    2. 2, English form;
    3. 3, Unicode code;

The first two forms are well understood, what do Unicode codes mean? Here's a basic definition:

Unicode (Uniform Code, universal Code, single code) is a character encoding used on a computer. It sets a uniform and unique binary encoding for each character in each language to meet the requirements for cross-language, cross-platform text conversion, and processing.

For more information, please see the introduction of Unicode in Baidu Encyclopedia.
After the introduction of the program, then the use of the next. Before looking at Yuber wrote an article " Chinese font in CSS in the wording" mentioned: Font-family used in the song Body, "in Unicode, not SimSun, because some versions of Firefox and Opera does not support the writing of SimSun." I searched the content on the Internet, mostly excerpt this article, and did not mention which version of Firefox and Opera will not support the English wording.

In contrast, three kinds of methods have advantages and disadvantages: Chinese form of convenient memory, but in the non-Chinese system or the code of the page can not be displayed properly; the English form is compatible with the problem of system and coding, but it is not easy to remember, and there may be potential risks; Unicode code compatibility is the best, but there are also memory problems.

Under the overall tradeoff, Unicode codes are recommended in terms of performance and safety first. If it is not too strict, you can choose the other two.

The following to organize the various types of commonly used font display, easy to use when looking for:

Chinese name English name Unicode
Windows
* Song body SimSun \5b8b\4f53
* black body Simhei \9ed1\4f53
* Microsoft ya Black Microsoft Yahei \5fae\8f6f\96c5\9ed1
Microsoft is in black Microsoft Jhenghei \5fae\x8f6f\6b63\9ed1\4f53
New song Body Nsimsun \65b0\5b8b\4f53
New Fine Ming Body PMingLiU \65b0\7ec6\660e\4f53
Fine Ming Body MingLiU \7ec6\660e\4f53
Mark in italics Dfkai-sb \6807\6977\4f53
Imitation Fangsong \4eff\5b8b
Italics Kaiti \6977\4f53
Imitation _gb2312 fangsong_gb2312 \4eff\5b8b_gb2312
Italic _gb2312 kaiti_gb2312 \6977\4f53_gb2312
Mac OS
* Chinese fine Black Stheiti Light [Stxihei] \534e\6587\7ec6\9ed1
* Chinese blackbody Stheiti \534e\6587\9ed1\4f53
Chinese italic Stkaiti \534e\6587\6977\4f53
XXFarEastFont-Chinese song Body Stsong \534e\6587\5b8b\4f53
XXFarEastFont-Imitation Stfangsong \534e\6587\4eff\5b8b
Lai Hei Pro Lihei Pro Medium \4e3d\9ed1 Pro
Lison Pro Lisong Pro Light \4e3d\5b8b Pro
Mark in italics Biaukai \6807\6977\4f53
Apple in Black Apple ligothic Medium \82f9\679c\4e3d\4e2d\9ed1
Apple Li Fine Song Apple Lisung Light \82f9\679c\4e3d\7ec6\5b8b

Previous table marked * for common fonts

font-family Chinese fonts in CSS

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.