[FFmpeg-devel] [PATCH] mkv: add new opentype mimetype

Reimar Döffinger Reimar.Doeffinger at gmx.de
Thu Jun 21 11:45:53 CEST 2012

On Thu, Jun 21, 2012 at 10:47:31AM +0200, Hendrik Leppkes wrote:
> On Thu, Jun 21, 2012 at 10:31 AM, Nicolas George <
> nicolas.george at normalesup.org> wrote:
> >
> > Please note that OpenType and TrueType are really two different formats. A
> > quick check shows that mkvmerge actually distinguishes the types. On the
> > other hand, any font handling library would probe the format anyway.
> >
> > I do not know which one would be better: state that CODEC_ID_TTF really
> > means CODEC_ID_FONT for any font file format, or create a new
> > CODEC_ID_OPENTYPE. Both have pros and cons. On the long run, the second is
> > probably slightly better.
> >
> This occured to me as well, but because the font libraries really do handle
> this themself, i opted to go the simple route and use CODEC_ID_TTF.
> I would be fine with adding a new CODEC_ID_OTF or _OPENTYPE or something
> like that as well, but of course this then asks all consumers to add
> support for this, while using _TTF will "just work" in most cases.

Personally I don't see much of a use-case for distinguishing between the
different vector font types, I don't know of major font libraries that
don't support all anyway?
Bitmap fonts would be a kind of different thing, so a kind of CODEC_ID_FONT
might not be such a good thing.
To be honest, in my mind "TTF" was always a synonym for "vector font",
even if the actual format was something else.

More information about the ffmpeg-devel mailing list