diff --git a/src/FontMetrics.php b/src/FontMetrics.php index a70bad67d..bd1639929 100644 --- a/src/FontMetrics.php +++ b/src/FontMetrics.php @@ -211,7 +211,7 @@ public function registerFont($style, $remoteFile, $context = null) $localFile = $fontDir . DIRECTORY_SEPARATOR . md5($remoteFile); $localTempFile = $this->options->get('tempDir') . "/" . md5($remoteFile); $cacheEntry = $localFile; - $localFile .= ".ttf"; + $localFile .= ".".strtolower(pathinfo($remote_file,PATHINFO_EXTENSION)); $styleString = $this->getType("{$style['weight']} {$style['style']}");