Web font knowledge, web font

Source: Internet
Author: User

Web font knowledge, web font

Start writing a blog again. 1.1 points of accumulation, uninterrupted.

I read instructor Ruan Yifeng's Chinese webpage font Development Guide and made some records.

Complete original article http://www.ruanyifeng.com/blog/2014/07/chinese_fonts.html

 

1: font-family Rules

Font-family: Georgia, "Times New Roman", "Microsoft YaHei", "", STXihei, "文 ", serif;

(1) Give priority to the front font.

(2) If the font cannot be found,Or the Font does not include the text to be rendered., Use the following font.

(3) If none of the listed fonts meet the requirements, the operating system determines which font to use.

 

According to these rules, the font-family should first specify the English font and then the Chinese font. Otherwise, the English letters in the Chinese font will replace the English font, which is often ugly.

To ensure compatibility, the Chinese and English names in the Chinese font should be written into the font-family.

In addition, the Chinese font name and the English name composed of multiple words should be placed in double quotation marks. (All are enclosed in double quotation marks)

 

Related Article

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.