Re: Default OSD font

Reimar Döffinger <[email protected]> Thu, 30 Dec 2010 13:36:58 +0100
Newsgroups gmane.comp.video.mplayer.cygwin
Message-ID <[email protected]>
On Wed, Dec 29, 2010 at 07:16:18AM -0800, John Brown wrote:
> On  Wed, December 29, 2010 14:56:10 GMT,  Reimar D=F6ffinger wrote:
> =

> =

> =

> =

> > On 26 dec 2010, at 17:09, John Brown <[email protected]> wrote:
> > > MPlayer shows the OSD even though I have not set up subfont.ttf. =

> > > According to 'mplayer -v',
> > > get_path('fonts') -> 'C:/MinGW/msys/1.0/home/johnbrown105/mplayer/fon=
ts'
> > > (right now I am in a MSYS shell so this path corresponds to $HOME/
> > > mplayer/fonts, but it does not matter where I am.) This folder does n=
ot even
> > > exist.
> > >
> > > My compile prefix is c:/mingw/local. $PREFIX/etc/mplayer/ is empty.
> > > $PREFIX/bin/mplayer/ exists but contains only config. $PREFIX/share
> > > does not have an mplayer folder.
> > >
> > > How does MPlayer select a font when it has not been told which font
> > > to use?
> =

> > You probably compiled MPlayer with fontconfig support, in which case it=
 uses =

> > whatever fontconfig chooses...
> > =

> =

> Yes, I compiled MPlayer with fontconfig support. So you are saying that =

> subfont.ttf
> is no longer strictly necessary, but If I provide one then MPlayer will u=
se it? =

> =

> I compiled MPlayer recently for the first time in several months (probabl=
y over =

> a =

> =

> year.), so I expect that some things must have changed. I have always com=
piled
> MPlayer with fontconfig support, but in the past, fontconfig or no fontco=
nfig, =

> MPlayer would look for subfont.ttf and would not display the timer if it =
did not =

> find it,
> unless I specified -fontconfig -font <my-favourite-font>.

I think -fontconfig is now default. Specifying -font should not have
been necessary, only to make it pick a specific one.
-nofontconfig should get the old behaviour in that case.
If you use -fontconfig I think you can only make MPlayer use subfont.ttf
by specifying the full path to it for -font.