2015-01-24 10:33:29 -05:00
|
|
|
<?php
|
2024-05-23 03:26:56 -04:00
|
|
|
|
2015-01-24 10:33:29 -05:00
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
2015-01-24 10:33:29 -05:00
|
|
|
*/
|
|
|
|
|
namespace OC\Preview;
|
|
|
|
|
|
|
|
|
|
// .otf, .ttf and .pfb
|
|
|
|
|
class Font extends Bitmap {
|
|
|
|
|
/**
|
|
|
|
|
* {@inheritDoc}
|
|
|
|
|
*/
|
2019-06-04 09:25:25 -04:00
|
|
|
public function getMimeType(): string {
|
2015-01-24 10:33:29 -05:00
|
|
|
return '/application\/(?:font-sfnt|x-font$)/';
|
|
|
|
|
}
|
2024-04-07 22:10:19 -04:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* {@inheritDoc}
|
|
|
|
|
*/
|
|
|
|
|
protected function getAllowedMimeTypes(): string {
|
|
|
|
|
return '/(application|image)\/(?:font-sfnt|x-font|x-otf|x-ttf|x-pfb$)/';
|
|
|
|
|
}
|
2019-06-04 09:25:25 -04:00
|
|
|
}
|