[wp-trac] [WordPress Trac] #45408: Again, error font-family style for Simplified Chinese (zh_CN).

WordPress Trac noreply at wordpress.org
Sat Nov 24 06:55:49 UTC 2018


#45408: Again, error font-family style for Simplified Chinese (zh_CN).
--------------------------+-----------------------------
 Reporter:  ze3kr         |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Themes        |    Version:  5.0
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 In wordpress 5.0 (5.0-RC1-43944):

 /wp-content/themes/twentyseventeen/assets/css/editor-blocks.css (For the
 new block editor)

 Line 160:

 {{{
 /* Typography for Chinese Font */

 html[lang^="zh-"] .edit-post-visual-editor .editor-block-list__block,
 html[lang="zh-CN"] .edit-post-visual-editor .editor-block-list__block {
         font-family: "PingFang TC", "Helvetica Neue", Helvetica,
 STHeitiTC-Light, Arial, sans-serif;
 }

 }}}

 zh-CN should use SC, but not TC.  Or the type of character is not correct.
 Similar to: #39379

 Should be changed to:

 {{{
 /* Typography for Chinese Font */

 html[lang^="zh-"] .edit-post-visual-editor .editor-block-list__block {
         font-family: "PingFang TC", "Helvetica Neue", Helvetica,
 STHeitiTC-Light, Arial, sans-serif;
 }

 html[lang="zh-CN"] .edit-post-visual-editor .editor-block-list__block {
         font-family: "PingFang SC", "Helvetica Neue", Helvetica,
 STHeitiSC-Light, Arial, sans-serif;
 }

 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45408>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list