mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
sd_ass: accept otc as fallback OpenType collection file extension
The OpenType Font File specification recommends that "Collection fonts that use CFF or CFF2 outlines should have an .OTC extension." mpv should accept .otc as a fallback extension for font detection should the mimetype detection fail.
This commit is contained in:
@@ -94,7 +94,7 @@ static const char *const font_mimetypes[] = {
|
||||
NULL
|
||||
};
|
||||
|
||||
static const char *const font_exts[] = {".ttf", ".ttc", ".otf", NULL};
|
||||
static const char *const font_exts[] = {".ttf", ".ttc", ".otf", ".otc", NULL};
|
||||
|
||||
static bool attachment_is_font(struct mp_log *log, struct demux_attachment *f)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user