Skip to content

Commit

Permalink
added a formatFontFace call to be able to match fonts in firefox too.
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasbenedetto committed Mar 4, 2024
1 parent 3e4f064 commit ec32719
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
) {
Expand Down

0 comments on commit ec32719

Please sign in to comment.