[MPlayer-dev-eng] [PATCH] autodetecting freetype

Arpi arpi at thot.banki.hu
Tue Dec 10 19:44:34 CET 2002


Hi,

> On Tue, Dec 10, 2002 at 05:31:55PM +0100, Wojtek Kaniewski wrote:
> > these patches let ,,oldstyle'' and freetype subtitle renderers live
> > together happily. if an oldstyle subtitle (font.desc) is found, it will
> > be used. otherwise mplayer will choose subfont.ttf, if freetype was
> > detected during ./configure.
> 
> BTW, mplayer should look for subfont instead of subfont.ttf, or else
> also search for subfont.pfb or something in addition. It's ridiculous
> to have to make a symlink to my type1 fonts with suffix .ttf to get
> mplayer to use it by default.

or even better:

try to open as RAW (it has 8-byte ID in header at offset 0) and if it
failed, then try with freetype.

don't rely on file extension, we are not under m$ platforms.


A'rpi / Astral & ESP-team

--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu



More information about the MPlayer-dev-eng mailing list