[Pkg-owncloud-commits] [owncloud] 03/165: Scale up the font on larger previews
David Prévot
taffit at moszumanska.debian.org
Thu Apr 23 04:06:13 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit 1592f25ed05faccb860637f230978df3336d51e1
Author: Joas Schilling <nickvergessen at owncloud.com>
Date: Wed Apr 15 14:03:40 2015 +0200
Scale up the font on larger previews
---
lib/private/preview/txt.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/private/preview/txt.php b/lib/private/preview/txt.php
index 80fd0c7..ea81738 100644
--- a/lib/private/preview/txt.php
+++ b/lib/private/preview/txt.php
@@ -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);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list