LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 01-19-2007, 11:22 AM   #1
stelmed
Member
 
Registered: Mar 2003
Location: Evia-Greece
Distribution: Slackware
Posts: 104

Rep: Reputation: 15
MPlayer 1.0rc1 cannot load ttf fonts


Hello everybody!
I have been using MPlayer successfully for a long time. Today I decided to compile the new rc1 version. Everything went smoothly except the fonts. Every time I start Mplayer I get the following error: "Cannot load bitmap font /path/to/font.ttf"
Untill now I have used a link from a ttf font to /home/user/.mplayer/subfont.ttf and it has worked perfectly. I wonder if you could help me as I have no idea what could it be.

Thanks in advance
 
Old 01-20-2007, 09:28 AM   #2
Okie
Member
 
Registered: Mar 2002
Location: Oklahoma
Posts: 964

Rep: Reputation: 34
open mplayer, then rightclick on the app > select preferences and in the fonts tab add the path to your desired font...
 
Old 01-25-2007, 12:16 AM   #3
stelmed
Member
 
Registered: Mar 2003
Location: Evia-Greece
Distribution: Slackware
Posts: 104

Original Poster
Rep: Reputation: 15
I wish it was that simple! When I do that I got a message that this is not a bitmap font...
 
Old 01-25-2007, 05:09 AM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,316

Rep: Reputation: Disabled
You could try my SlackBuild script (or download the Slackware package) I made for MPLayer, which will use one of your already installed TTF fonts instead of looking for a font in ~/.mplayer (this is deprecated as far as I know): http://www.slackware.com/~alien/slackbuilds/MPlayer/ . If you want a script or the package that can read encrypted DVD's (using decss) go to http://www.alienbase.nl/slackware/re...uilds/MPlayer/ instead.

Eric
 
Old 01-25-2007, 05:47 AM   #5
pdw_hu
Member
 
Registered: Nov 2005
Location: Budapest, Hungary
Distribution: Slackware, Gentoo
Posts: 346

Rep: Reputation: Disabled
Afaik, the new version needs freetype for TTF fonts to work. Anyhow it doesn't work for me either (no matter how, and with what i configure it...)
 
Old 01-27-2007, 12:51 PM   #6
stelmed
Member
 
Registered: Mar 2003
Location: Evia-Greece
Distribution: Slackware
Posts: 104

Original Poster
Rep: Reputation: 15
Finally I decided to use bitmap fonts , this is a major downgrade but I have no other option, at least for now...
If someone fins out how to use truetype fonts under Mplayer 1.0rc1, please let me know...
 
Old 01-27-2007, 12:58 PM   #7
stelmed
Member
 
Registered: Mar 2003
Location: Evia-Greece
Distribution: Slackware
Posts: 104

Original Poster
Rep: Reputation: 15
Finally I decided to use bitmap fonts , this is a major downgrade but I have no other option, at least for now...
If someone finds out how to use truetype fonts under Mplayer 1.0rc1, please let me know...
 
Old 01-27-2007, 03:21 PM   #8
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,316

Rep: Reputation: Disabled
As I said, try my package (or use the SlackBuild script to compile it yourself) - when installing the package it will try to link /usr/share/mplayer/subfont.ttf to one of your existing TTF fonts. But only if that file/link does not yet exist.
Also, check your ~/.mplayer/config , maybe there are other locations where you've configured bitmap fonts for an older version of MPlayer that are now only trouble.

This is the comment in my SlackBuild about this:
Code:
# MPlayer will try to use one of the TrueType fonts present on the target
# system for it's On Screen Display (OSD) font.
# Slackware 11.0 ships with the Vera and DejaVu fonts, you may want to add
# more fonts to this list. The first font found will be used by creating a
# symbolic link "/usr/share/mplayer/subfont.ttf" to it.
# The use of bitmapped fonts is considered deprecated, but you can still use
# those if you want. Read http://www.mplayerhq.hu/DOCS/HTML/en/fonts-osd.html
# if you want to know more about OSD font configuration.
OSDFONTS="Arialuni.ttf arial.ttf DejaVuSans.ttf Vera.ttf"
Eric
 
Old 01-28-2007, 10:08 AM   #9
stelmed
Member
 
Registered: Mar 2003
Location: Evia-Greece
Distribution: Slackware
Posts: 104

Original Poster
Rep: Reputation: 15
Actually I tried your binary file but I had some dependency problems (with theora I guess)so I quited because I want to keep my slack really neat. BTW what packages are required in order to be able to run your binary with no problem???
 
Old 01-28-2007, 11:41 AM   #10
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,316

Rep: Reputation: Disabled
I build my binaries on a full install of Slackware 11.0, with no other software installed. So I am curious what the complaint of the program was when it started?

Eric
 
Old 01-29-2007, 06:34 AM   #11
stelmed
Member
 
Registered: Mar 2003
Location: Evia-Greece
Distribution: Slackware
Posts: 104

Original Poster
Rep: Reputation: 15
Well, it was about some missing libraries, libtheora.something
 
Old 01-29-2007, 06:36 AM   #12
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,316

Rep: Reputation: Disabled
Libtheora is part of Slackware 11.0 (slackware/l/libtheora-1.0alpha7-i486-1.tgz), so perhaps you just have to install that additional package from the Slackware CDROM.

Eric
 
Old 02-05-2007, 07:40 AM   #13
urke
LQ Newbie
 
Registered: Jan 2005
Location: Kragujevac, Serbia, SCG
Distribution: Fedora Core 6 [Zod]
Posts: 5

Rep: Reputation: 0
I have Fedora Core 6 and after latest yum update my mplayer can't anymore load TTF font ~/.mplayer/subfont.ttf but load some default that is wide (I use Myriad ProCondensed for subtitles).
ldd /usr/bin/mplayer report that mplayer is linked/built with freetype support, freetype is installed, but without effect.

I try to load various TTF's manualy, by mplayer simple ignore that.

Code:
[urke@urosevic]$ rpm -qa|grep freetype
freetype-2.2.1-16.fc6
freetype-devel-2.2.1-16.fc6
[urke@urosevic]$ rpm -qa|grep mplayer
mplayer-gui-1.0-0.69.rc1
mplayerplug-in-debuginfo-3.31-2.fc6.rf
mplayer-1.0-0.69.rc1
 
Old 02-05-2007, 01:17 PM   #14
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,316

Rep: Reputation: Disabled
Quote:
Originally Posted by urke
I have Fedora Core 6 and after latest yum update
It is unfortunate for you, but this is a Slackware forum. We don't do RPM and yum.

Eric
 
Old 02-05-2007, 06:48 PM   #15
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Quote:
Originally Posted by Alien Bob
It is unfortunate for you, but this is a Slackware forum. We don't do RPM and yum.

Eric
LOL, true dat
 
  


Reply

Tags
font, freetype, mplayer, ttf


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
TTF Fonts huno Linux - Software 5 12-22-2006 10:38 PM
Making .ttf Fonts GYRO Programming 3 01-12-2004 06:29 AM
TTF Fonts XPediTioN Slackware 8 08-16-2003 07:38 PM
Regarding ttf fonts loading tprsd1 Linux - Software 0 03-07-2003 06:59 AM
Any way to convert ttf fonts to linux console fonts? Glockage Linux - Software 7 12-30-2002 06:41 AM


All times are GMT -5. The time now is 04:36 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration