From ec32719bb68f052fce96bb2b0bedb313fdc62a3f Mon Sep 17 00:00:00 2001 From: Matias Benedetto Date: Mon, 4 Mar 2024 15:47:13 -0300 Subject: [PATCH] added a formatFontFace call to be able to match fonts in firefox too. --- .../components/global-styles/font-library-modal/utils/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/edit-site/src/components/global-styles/font-library-modal/utils/index.js b/packages/edit-site/src/components/global-styles/font-library-modal/utils/index.js index a54a9f6f35ee7c..cfffc3bcec3177 100644 --- a/packages/edit-site/src/components/global-styles/font-library-modal/utils/index.js +++ b/packages/edit-site/src/components/global-styles/font-library-modal/utils/index.js @@ -134,7 +134,7 @@ export function unloadFontFaceInBrowser( fontFace, removeFrom = 'all' ) { const unloadFontFace = ( fonts ) => { fonts.forEach( ( f ) => { if ( - f.family === fontFace.fontFamily && + f.family === formatFontFaceName( fontFace.fontFamily ) && f.weight === fontFace.fontWeight && f.style === fontFace.fontStyle ) {