Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
Prefer lower-case extensions on remote font files
Browse files Browse the repository at this point in the history
Closes dompdf#988
  • Loading branch information
reyko99 authored and bsweeney committed Jul 22, 2016
1 parent 589ed86 commit 0e0261b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FontMetrics.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']}");

Expand Down

0 comments on commit 0e0261b

Please sign in to comment.