From 11b727ad128ed003d80127421b813e78293b277b Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sun, 5 Dec 2021 14:34:51 +0000 Subject: [PATCH] Update Embedded fonts dont work --- Embedded-fonts-dont-work.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Embedded-fonts-dont-work.md b/Embedded-fonts-dont-work.md index dbf1c10..69d4728 100644 --- a/Embedded-fonts-dont-work.md +++ b/Embedded-fonts-dont-work.md @@ -16,12 +16,8 @@ Each time the user adds an attachment to the GUI the MIME type will be detected The system used for automatic MIME type recognition is the well-known `libmagic` library which is part of the [`file`](http://darwinsys.com/file/) utility. It is the standard library for MIME type detection on non-Unix systems and is also used in a wide variety of Windows programs. -A couple of versions ago `libmagic` returned a different MIME type than it does today. Earlier it was `application/x-truetype-font`, today it is `application/x-font-ttf`. Most Linux users noticed this change some time ago while Windows users didn't. This is due to me not updating the `libmagic` library I was using for creating the Windows build of MKVToolNix. +Over the years there were several changes in which MIME type was detected by `libmagic` for fonts, mostly due to initially there being no actual standard for it, or the standards changing several times. Not all players support all MIME types. -See [this mailing list post](http://mx.gw.com/pipermail/file/2009/000400.html) for the rationale behind the change. - -Starting with v5.1.0 I did finally update said library for the Windows builds as well. If a player doesn't recognize `application/x-font-ttf` as a MIME type for TrueType fonts then it will most likely not use the attached font for playback. - -As this causes major headaches for a lot of people I have added a manual mapping in release v5.2.0 so that the older MIME tpe `application/x-truetype-font` is used even if `libmagic` returns `application/x-font-ttf`. +If your player doesn't support whatever MKVToolNix uses, you can specify the MIME type yourself instead of relying on auto-detection. Additionally there's an option in the GUI (but not in `mkvmerge` itself) to use older MIME types (preferences → "GUI" → "Use legacy MIME types for font attachments"). Categories: [playback](FAQ#category-playback)