[MPlayer-dev-eng] [PATCH] autodetecting freetype
Arpi
arpi at thot.banki.hu
Wed Dec 11 23:52:33 CET 2002
Hi,
> 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.
nice work.
but i have a problem: it tries to open old-style font first.
it wouldn't be a big problem, but the font.desc parser can't recognize
ttf fonts, and it trie sto parse ttf as desc file, printing lots of errors,
and sometimes crashing. imho it would be better, if it prefer ttf over
old-stype fonts. so, try to open it with freetype, and if failed, then try
old style read_font_desc().
it actually requires some chanegs, as the current freetype code opens the
fontfile only after vo initialized (at the first osd rendering), it should
be changed, to open the fontfile at startup, but render chars only after vo
init.
Jindrich, what do you think?
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