Scale up the font on larger previews

This commit is contained in:
Joas Schilling 2015-04-15 14:03:40 +02:00
parent 1a894bd0d8
commit 1592f25ed0
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ class TXT extends Provider {
$lines = preg_split("/\r\n|\n|\r/", $content);
$fontSize = 5; //5px
$fontSize = ($maxX) ? (int) ((5 / 36) * $maxX) : 5; //5px
$lineSize = ceil($fontSize * 1.25);
$image = imagecreate($maxX, $maxY);