From 16b4059ca3e142cf1b9c18dd686355a3681d2d84 Mon Sep 17 00:00:00 2001 From: Gareth J Barnard Date: Sat, 29 Mar 2014 12:30:24 +0000 Subject: [PATCH] MDL-44854 theme: 'svg' font type not served. --- theme/font.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/theme/font.php b/theme/font.php index 867b45147b0..096f0110f00 100644 --- a/theme/font.php +++ b/theme/font.php @@ -74,6 +74,9 @@ if (preg_match('/^[a-z0-9_-]+\.woff$/i', $font, $matches)) { // IE8 must die!!! $font = $matches[0]; $mimetype = 'application/vnd.ms-fontobject'; +} else if (preg_match('/^[a-z0-9_-]+\.svg$/i', $font, $matches)) { + $font = $matches[0]; + $mimetype = 'image/svg+xml'; } else { font_not_found();