In the site, are inevitable to use some Chinese fonts, such as the song, Microsoft, black, bold, etc., in the CSS written in Chinese methods are generally: font-family: "Microsoft Ya Black", "bold"; such a similar expression.
CSS style files also distinguish between file encoding (visually gb2312, UTF-8 2 encoded files, gb2312 encoded style file lines and lines of line spacing between the more intensive, looks more messy!) )。
Therefore, the specified font-family attribute in the CSS is bold, young round, Microsoft, such as the black and other Chinese fonts may be because of coding problems in Chinese fonts can not be in accordance with the desired font form! If the CSS encoding is incorrect, will cause the page to load the CSS in the Chinese font garbled!
Therefore, we recommend the use of English, Unicode this form to express Chinese fonts, such as font-family: "XXFarEastFont-Arial", "Microsoft Ya-Black", "bold", can be written as font-family: "SimSun", "Microsoft Yahei", " Simhei "In some versions of Firefox and Opera does not support Simhei's writing, using Font-family:5fae8f6f96c59ed1;unicode.
The following describes a method for Unicode encoding in Chinese fonts:
If you use the chrome or Firefox debug plugin, enter Escape (' Arial ') directly in the console console and return a string of strings: "%u5b8b%u4f53" to rewrite it as "5b8b4f53″, this is the Unicode encoding of the song body!"
Similarly, Unicode encoding is translated into Chinese font methods such as: "5b8b4f53″
First the "5b8b4f53″" rewrite to "%u5b8b%u4f53", and then use Unescape ('%u5b8b%u4f53 ') to see the corresponding Unicode encoding of the Chinese font!
This may be too much trouble, it doesn't matter, here is a more complete in English and Unicode corresponding table:
Chinese name |
English name |
Unicode |
New-fine-ming body |
PMingLiU |
65b07ec6660e4f53 |
Fine-ming body |
MingLiU |
7ec6660e4f53 |
Superscript italics |
Dfkai-sb |
680769774f53 |
Blackbody |
Simhei |
9ed14f53 |
Song Body |
SimSun |
5b8b4f53 |
XXFarEastFont-Franklin Gothic new song body |
Nsimsun |
65b05b8b4f53 |
Imitation |
Fangsong |
4eff5b8b |
Italics |
Kaiti |
69774f53 |
Imitation _gb2312 |
fangsong_gb2312 |
4eff5b8b_gb2312 |
Italics _gb2312 |
kaiti_gb2312 |
69774f53_gb2312 |
Microsoft is in bold |
Microsoft Jhenghei |
5faex8f6f6b639ed14f53 |
Microsoft James Black |
Microsoft Yahei |
5fae8f6f96c59ed1 |