From 3481946695a0f615042840e9b4b80a27719e4f32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20Laxstr=C3=B6m?= Date: Fri, 20 May 2016 14:17:08 +0200 Subject: [PATCH] Drop svg from supported webfont formats We do not have any svg formatted font files. Change-Id: I613c04f082bfc07872d4e843cdacdfd62517bd37 --- includes/FontRepoCompiler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/FontRepoCompiler.php b/includes/FontRepoCompiler.php index 4bd05537..eab9ebe5 100644 --- a/includes/FontRepoCompiler.php +++ b/includes/FontRepoCompiler.php @@ -91,7 +91,7 @@ class FontRepoCompiler { $info['fontstyle'] = $font['fontstyle']; } - foreach ( [ 'ttf', 'svg', 'woff', 'woff2' ] as $format ) { + foreach ( [ 'ttf', 'woff', 'woff2' ] as $format ) { if ( isset( $font[$format] ) ) { $info[$format] = $this->getFontWebPath( $fontpath, $fontdir, $font[$format] ); } @@ -99,7 +99,7 @@ class FontRepoCompiler { // If font formats are not explicitly defined, scan the directory. if ( !isset( $info['ttf'] ) ) { - foreach ( glob( "$fontpath/*.{ttf,woff,woff2,svg}", GLOB_BRACE ) as $fontfile ) { + foreach ( glob( "$fontpath/*.{ttf,woff,woff2}", GLOB_BRACE ) as $fontfile ) { $type = substr( $fontfile, strrpos( $fontfile, '.' ) + 1 ); $info[$type] = $this->getFontWebPath( $fontpath, $fontdir, basename( $fontfile ) ); }