summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Preview/TXT.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/Preview/TXT.php b/lib/private/Preview/TXT.php
index a5efb73010c..2bb121775d6 100644
--- a/lib/private/Preview/TXT.php
+++ b/lib/private/Preview/TXT.php
@@ -60,8 +60,9 @@ class TXT extends Provider {
$lines = preg_split("/\r\n|\n|\r/", $content);
- $fontSize = $maxX ? (int) ((5 / 32) * $maxX) : 5; //5px
- $lineSize = ceil($fontSize * 1.25);
+ // Define text size of text file preview
+ $fontSize = $maxX ? (int) ((2 / 32) * $maxX) : 5; //5px
+ $lineSize = ceil($fontSize * 1.5);
$image = imagecreate($maxX, $maxY);
imagecolorallocate($image, 255, 255, 255);