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

WordPress Trac noreply at wordpress.org
Fri Jul 23 09:00:23 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         |  Resolution:
 Keywords:  close          |     Focuses:
---------------------------+------------------------------

Comment (by TwentyZeroTwo):

 @ocean90 makes sense.

 I think myself and a lot of other devs who use WordPress in an agency
 setting (themes specific use-cases/clients and not for market place) will
 likely hold off adopting `theme.json` use. Saying that, I will install the
 gutenberg plugin and try more of these features out as overall
 `theme.json` is a brilliant new feature.

 Out of interest, why was the decision made to disable the default editor
 font in WordPress when `theme.json` is active? If core doesn't support
 setting `fontFamily` yet without the plugin, then it seems a little odd to
 dequeue the editor font-family with no way to define the new family.

 I would also argue this is a docs enhancement as users reading
 https://developer.wordpress.org/block-editor/how-to-guides/themes/theme-
 json/ are not informed that the default family is dequeued, as that
 information is only available on
 https://make.wordpress.org/core/2021/06/25/introducing-theme-json-in-
 wordpress-5-8/.

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


More information about the wp-trac mailing list