[wp-trac] [WordPress Trac] #60654: Install several formats of the same font one by one is not possible

WordPress Trac noreply at wordpress.org
Mon Mar 25 01:54:59 UTC 2024


#60654: Install several formats of the same font one by one is not possible
-------------------------+---------------------
 Reporter:  jdy68        |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  6.6
Component:  Editor       |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+---------------------

Comment (by grantmkin):

 > To address this, font faces need to be editable and there is currently
 no API to handle that.

 There's some nuance (and potential complexity) to adding an update
 endpoint for font-faces, which is why this hasn't been implemented yet.

 For an update endpoint, my assumption would be that whatever is provided
 in the `src` property as the urls to the font files would ''replace'' the
 existing values, and any previous font files not present in the updated
 `src` array would be deleted.

 This means that to upload an additional format for an existing font face,
 we'd need to parse the font file for the family, check to see if a font
 face with the same values already exists for the family, and if so, fetch
 the current src values. Then we could append the new format to the src and
 upload it.

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


More information about the wp-trac mailing list