Let's first explain why we need to convert Chinese to unicode encoding. Unicode plays an important role in general international standards. It is more byte-saving than traditional character encoding, enabling the design of web pages to be displayed on platforms of different languages, therefore, as long as the Chinese character is converted to Unicode, no garbled
';}
Because, as far as I know, these English fonts are not mapped in Chinese character sets, that is, English fonts actually do not have any effect on Chinese. Considering the Font-family font parsing is the same as in the past, so, naturally the above code number English is Helvetica font, Chinese is Apple or Microsoft ya Black, do not need to use unicode-range
Write by nine days Yan Ling (jtianling) -- blog.csdn.net/vagrxie
Discuss newsgroups and documents
In orx1.2, Unicode and custom fonts are supported. Now, orx supports Chinese display. In "uni-code to rule them all?"Mentioned by the author in this article. This is mainly for Chinese users. I naturally need to support it.
First, because version 1.2 has not yet been released (the code has been completed, but a
Unicode encoding of common Chinese fonts in CSSIn the Web page production, the most commonly used is the font attributes, in the adjustment page compatibility, also often found that the cause of the font name is incompatible or garbled, the following gives a few commonly used fonts Ucicode coding control, easy to use.
Song Body
SimSun
\5b8
Convert the font name to unicode encoding
If you use Chinese Characters in CSS, it will cause encoding problems. Therefore, you should use English characters to set Chinese fonts, such:
body { font-family: SimSun; }
SimsunIt is the English name of.
This is the ideal situation. Unfortunately, there is always a gap between the ideal and the reality. Earlier versions of Firefox and Opera (up to version 10) c
Song Body
SimSun
\5b8b\4f53
Blackbody
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
Li Wu:Heng Learn to think together, honouring teachers save Thanksgiving. Leaf See root three return to one, rivers the same oneness.Meekness Conscience Lord, willing to do without regrets to the most bitter. Reading exercises to keep the body and mind, sincere advice and the line and cherish.
Ide:visual Studio 2017
Browser:chrome
Os:win7
CodeDOCTYPE HTML>HTML>Head> MetaCharSet= "Utf-8" /> title>title> styletype= "Text/css">. Font-yahei{font-family:' Microsoft Yahei ',
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.