[wp-trac] [WordPress Trac] #53744: Cannot set editor font-family via theme.json

WordPress Trac noreply at wordpress.org
Thu Jul 22 17:05:17 UTC 2021


#53744: Cannot set editor font-family via theme.json
---------------------------+-----------------------------
 Reporter:  TwentyZeroTwo  |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Editor         |    Version:
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 As indicated on https://make.wordpress.org/core/2021/06/25/introducing-
 theme-json-in-wordpress-5-8/, "The default font-family styles for the
 editor are not enqueued." when theme.json is present in a theme.

 As far as I can see, there is no method to set the font-family of the
 editor without enqueuing a custom style sheet, which defeats the point of
 what I believe the new theme.json is pushing to achieve.

 Similarly, theme.json can specify the below property:

 {{{
 settings.typography.fontFamilies
 }}}

 but it doesn't appear to do anything or be used anywhere in the editor.

 Is this future functionality, or is the handling of editor/block font-
 families an oversight in 5.8?

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


More information about the wp-trac mailing list