Update Embedded fonts dont work

Moritz Bunkus 2021-12-05 14:34:51 +00:00
parent 29bccaba63
commit 11b727ad12

@ -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)