diff options
author | Olivier Paroz <github@oparoz.com> | 2015-01-24 16:33:29 +0100 |
---|---|---|
committer | Olivier Paroz <github@oparoz.com> | 2015-02-24 22:00:54 +0100 |
commit | f49805eea56dcd607871fda5f31b42e02f1b1361 (patch) | |
tree | 95d03d1feccc3d88f18e5c4934b7d7ff460315e4 /lib/private/preview.php | |
parent | 09a06e4f0a2d473e1dc3ea1d92fefc3cfa318d4d (diff) | |
download | nextcloud-server-f49805eea56dcd607871fda5f31b42e02f1b1361.tar.gz nextcloud-server-f49805eea56dcd607871fda5f31b42e02f1b1361.zip |
Add support for font previews
Diffstat (limited to 'lib/private/preview.php')
-rw-r--r-- | lib/private/preview.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/preview.php b/lib/private/preview.php index c276fa5489a..5b47b34f05b 100644 --- a/lib/private/preview.php +++ b/lib/private/preview.php @@ -731,6 +731,7 @@ class Preview { * - OC\Preview\Illustrator * - OC\Preview\Postscript * - OC\Preview\Photoshop + * - OC\Preview\Font */ if(empty(self::$enabledProviders)) { self::$enabledProviders = \OC::$server->getConfig()->getSystemValue('enabledPreviewProviders', array( @@ -790,8 +791,8 @@ class Preview { 'PDF' => 'OC\Preview\PDF', 'AI' => 'OC\Preview\Illustrator', 'PSD' => 'OC\Preview\Photoshop', - // Requires adding 'eps' => array('application/postscript', null), to lib/private/mimetypes.list.php 'EPS' => 'OC\Preview\Postscript', + 'TTF' => 'OC\Preview\Font', ); foreach ($imagickProviders as $queryFormat => $provider) { |