summaryrefslogtreecommitdiffstats
path: root/lib/private/preview
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-03-11 15:56:32 +0100
committerMorris Jobke <hey@morrisjobke.de>2015-03-11 15:56:32 +0100
commit04eef93b2579ce25b03bf1b7ab5ec5547ff4786a (patch)
tree201b8c7356f2835f3183228f802fa224086ebdc6 /lib/private/preview
parentcf25e6f5694777a73b2c8e5987765d9cc0dc7fe9 (diff)
parentf49805eea56dcd607871fda5f31b42e02f1b1361 (diff)
downloadnextcloud-server-04eef93b2579ce25b03bf1b7ab5ec5547ff4786a.tar.gz
nextcloud-server-04eef93b2579ce25b03bf1b7ab5ec5547ff4786a.zip
Merge pull request #13648 from oparoz/sfnt-fonts-preview
Add support for font previews
Diffstat (limited to 'lib/private/preview')
-rw-r--r--lib/private/preview/font.php19
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