With mplayer-1.0_rc1, I can't see the OSD fonts, i.e. those that say how much time has passed and is remaining. When pressing '0', I only see the left-to-right arrow. When pressing 'J', audio track changes but I get no visual feedback. SSA subtitles, when I select ass=1 in ~/.mplayer/config (thus enabling SSA font rendering), work fine. In any other case, subtitles DON'T work. When starting gmplayer, I get this: New_Face failed. Maybe the font path is wrong. Please supply the text font file (~/.mplayer/subfont.ttf). subtitle font: load_sub_face failed. Everything worked fine with the original ebuild for mplayer-1.0_rc1 (that with the subtitles USE flag).
(In reply to comment #0) > With mplayer-1.0_rc1, I can't see the OSD fonts, i.e. those that say how much > time has passed and is remaining. When pressing '0', I only see the > left-to-right arrow. When pressing 'J', audio track changes but I get no visual > feedback. > > SSA subtitles, when I select ass=1 in ~/.mplayer/config (thus enabling SSA font > rendering), work fine. In any other case, subtitles DON'T work. > > > When starting gmplayer, I get this: > New_Face failed. Maybe the font path is wrong. > Please supply the text font file (~/.mplayer/subfont.ttf). > subtitle font: load_sub_face failed. > > Everything worked fine with the original ebuild for mplayer-1.0_rc1 (that with > the subtitles USE flag). > Well, all the subtitles flag does (which may or may not get added back in) is check to make sure that you have "iconv" and "freetype" USE flags added. If you do, then subtitle support will turn on automatically. If you still have problems with fonts, try setting one manually in ~/.mplayer/config font=/usr/share/fonts/foo.ttf
There is no "freetype" USE flag in mplayer 1.0-rc1. iconv is already set. media-video/mplayer-1.0_rc1 USE="3dnow 3dnowext X aac alsa amr bl cdparanoia dga dts dvb dvd dvdread enca encode fbcon ggi gif gtk iconv ipv6 jpeg libcaca live lzo mad mmx mmxext musepack opengl png real rtc samba sdl speex sse tga theora truetype unicode v4l v4l2 vorbis win32codecs xanim xv xvid xvmc -3dfx -aalib (-altivec) -arts -bidi -bindist -cpudetection -custom-cflags -debug -directfb -doc -dv -esd -jack -joystick -lirc -livecd -matrox -nas -openal -oss -sse2 -svga -x264 -xinerama" LINGUAS="-bg -cs -da -de -el -en -es -fr -hu -ja -ko -mk -nl -no -pl -pt_BR -ro -ru -sk -tr -uk -zh_CN -zh_TW" >If you still have problems with fonts, try setting one manually in >~/.mplayer/config >font=/usr/share/fonts/foo.ttf Yes, this workaround works. However, font size is gigantic. workaround: font='Bitstream Vera Sans' fontconfig=1 subfont-osd-scale=4 subfont-text-scale=3
(In reply to comment #2) > There is no "freetype" USE flag in mplayer 1.0-rc1. iconv is already set. truetype. whatever. :B > >If you still have problems with fonts, try setting one manually in > >~/.mplayer/config > >font=/usr/share/fonts/foo.ttf > Yes, this workaround works. However, font size is gigantic. > > workaround: > font='Bitstream Vera Sans' > fontconfig=1 > subfont-osd-scale=4 > subfont-text-scale=3 > Dunno, ask mplayer-users list. *shrug*
>font='Bitstream Vera Sans' >fontconfig=1 the above is redundant. Either just fontconfig=1 or font=/usr/share/fonts/ttf-bitstream-vera/Vera.ttf is enough to make subtitles work (gigantic, but working :P )
The most recent ebuild chooses not to install the regular set of fonts if the truetype USE flag is set. This prevents non-fontconfig subtitles from working, as simply enabling truetype/fontconfig support in mplayer doesn't force it on, and the regular fonts are still required by default. I can confirm that unconditionally installing the fonts in the ebuild allows the OSD to work whether or not fontconfig=1 (or -fontconfig on the command line) is specified.
The bitmap fonts have their problems though, are no longer fully supported and will no longer work right for non-ascii, see http://bugzilla.mplayerhq.hu/show_bug.cgi?id=199 Installing/linking (or referencing in the config) a suitable ttf font, preferably one that includes at least most unicode characters would be preferable (can someone recommend one? Vera seems to contain very few).
(In reply to comment #6) > The bitmap fonts have their problems though, are no longer fully supported and > will no longer work right for non-ascii, see > http://bugzilla.mplayerhq.hu/show_bug.cgi?id=199 > Installing/linking (or referencing in the config) a suitable ttf font, > preferably one that includes at least most unicode characters would be > preferable (can someone recommend one? Vera seems to contain very few). > I think that the best solution is to require fontconfig. This way, if a font doesn't support some characters, you can fall back on other ones (i.e. I can perfectly visualize japanese kanji, even if Vera doesn't support them).
I can agree with comment #5 that the fonts should be installed no matter what, however it still leaves the case of which one will mplayer fall back on? I'm not sure if I'll have to symlink to a font in /usr/share/mplayer or not. I'll have to look that one up. As far as comment #7, the use flags should be fixed now so that if truetype is enabled, fontconfig is pulled in and it's support is added to the default mplayer.conf. I would prefer to have it be an option instead of a hard dependency.
pretty much cleaned up best it can, closing as WORKSFORME