[wp-trac] [WordPress Trac] #39379: Twenty Seventeen: Error font-family for Simplified Chinese (zh_CN) in CSS
WordPress Trac
noreply at wordpress.org
Fri Dec 23 16:29:10 UTC 2016
#39379: Twenty Seventeen: Error font-family for Simplified Chinese (zh_CN) in CSS
---------------------------+------------------------------
Reporter: ze3kr | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version: 4.7
Severity: normal | Resolution:
Keywords: | Focuses:
---------------------------+------------------------------
Description changed by davidakennedy:
Old description:
> Topic: https://wordpress.org/support/topic/error-font-family-for-
> simplified-chinese-zh_cn-in-twentyseventeens-css-2/
New description:
In the style.css of the new theme twentyseventeen (both stable and nightly
build), line 664, which defines Chinese font:
{{{
/* Typography for Chinese Font */
html[lang^="zh-"] body,
html[lang^="zh-"] button,
html[lang^="zh-"] input,
html[lang^="zh-"] select,
html[lang^="zh-"] textarea {
font-family: "PingFang TC", "Helvetica Neue", Helvetica,
STHeitiTC-Light, Arial, sans-serif;
}
}}}
However, this CSS is only suitable for zh-HK and zh-TW, but not for zh-CN,
which should not use traditional Chinese (TC), but Simplified Chinese (SC)
So it needs to add these line after that, and it works well:
{{{
html[lang="zh-CN"] body,
html[lang="zh-CN"] button,
html[lang="zh-CN"] input,
html[lang="zh-CN"] select,
html[lang="zh-CN"] textarea {
font-family: "PingFang SC", "Helvetica Neue", Helvetica, STHeitiSC-
Light, Arial, sans-serif
}
}}}
See: https://wordpress.org/support/topic/error-font-family-for-simplified-
chinese-zh_cn-in-twentyseventeens-css-2/
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39379#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list