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 | |
parent | 09a06e4f0a2d473e1dc3ea1d92fefc3cfa318d4d (diff) | |
download | nextcloud-server-f49805eea56dcd607871fda5f31b42e02f1b1361.tar.gz nextcloud-server-f49805eea56dcd607871fda5f31b42e02f1b1361.zip |
Add support for font previews
Diffstat (limited to 'lib/private/preview')
-rw-r--r-- | lib/private/preview/font.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/private/preview/font.php b/lib/private/preview/font.php new file mode 100644 index 00000000000..58d64e8264d --- /dev/null +++ b/lib/private/preview/font.php @@ -0,0 +1,19 @@ +<?php +/** + * @copyright Olivier Paroz 2015 <owncloud@interfasys.ch> + * This file is licensed under the Affero General Public License version 3 or + * later. + * See the COPYING-README file. + */ + +namespace OC\Preview; + +// .otf, .ttf and .pfb +class Font extends Bitmap { + /** + * {@inheritDoc} + */ + public function getMimeType() { + return '/application\/(?:font-sfnt|x-font$)/'; + } +}
\ No newline at end of file |