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

WordPress Trac noreply at wordpress.org
Wed Feb 28 17:12:31 UTC 2024


#60654: Install several formats of the same font one by one is not possible
--------------------------+-----------------------------
 Reporter:  jdy68         |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 == Bug Report
 === Description
 It's not possible to install multiple formats of the same font by
 installing one format at a time, but it works if you select different
 formats for the same upload.

 === Environment
 - WordPress: 6.5-beta3
 - PHP: 8.1.15
 - Server: Apache/2.4.54 (Win64) OpenSSL/1.1.1q mod_fcgid/2.3.10-dev
 - Database: mysqli (Server: 8.0.30 / Client: mysqlnd 8.1.15)
 - Browser: Chrome 122.0.0.0 (Windows 10/11)
 - Theme: Twenty Twenty-Four 1.0
 - MU-Plugins: None activated
 - Plugins:
   * WordPress Beta Tester 3.5.5
   * Debug Log Manager 2.3.1

 === Steps to Reproduce
 1. Go to Apparence > Editor > Styles.
 2. Click on Edit styles button then Typography (in settings sidebar).
 3. Click on Manage fonts button then Upload.
 4. Click on Upload font and select the font on your computer. Choose a
 font for which several formats are available (ttf, woff, woff2) and select
 only one format, e.g. ttf.
 5. The font is uploaded and installed.
 6. Then click again on Upload font and select another format for the same
 font, e.g. woff.
 7. 🐞 The following error message is displayed: "No font faces were
 installed. Fetch error: A font face matching those settings already
 exists." But if you upload several formats (ttf, woff and woff2) of the
 same font at once, then all 3 files are imported and the font is installed
 3 times.

 === Expected Results
 1.  ✅ It should be possible to install different formats of the same
 font, at once or in several times.

 === Actual Results
 1.  ❌ When uploading different formats of the same font at once, all
 files are uploaded and installed, with no error message. But if you've
 already uploaded a format for a font (e.g. ttf), you can't upload the font
 in another format (such as woff or woff2), and an error message is
 displayed.

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


More information about the wp-trac mailing list