summaryrefslogtreecommitdiffstats
path: root/lib/private/Preview/Font.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Preview/Font.php')
-rw-r--r--lib/private/Preview/Font.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/private/Preview/Font.php b/lib/private/Preview/Font.php
index baf29e1defc..18dfb3e7ec0 100644
--- a/lib/private/Preview/Font.php
+++ b/lib/private/Preview/Font.php
@@ -30,4 +30,11 @@ class Font extends Bitmap {
public function getMimeType(): string {
return '/application\/(?:font-sfnt|x-font$)/';
}
+
+ /**
+ * {@inheritDoc}
+ */
+ protected function getAllowedMimeTypes(): string {
+ return '/(application|image)\/(?:font-sfnt|x-font|x-otf|x-ttf|x-pfb$)/';
+ }
}