LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-19-2003, 05:11 PM   #1
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 46
fonts


hi. im running gnome on rh-8.
i am trying to install some new fonts so that i can change the application fonts using "Applications->Preferences->Fonts" under the menu.
ok, so i got the fonts - moved them into the dir : /usr/X11R6/lib/X11/fonts/TTF, which is listed when i do a 'chkfontpath --list'.
now, if i open openoffice, i can see the new fonts listed fine, and i can edit documents using them.
but when i try to change my application and system font preferences, it doesnt show up in the list (using Applications->Preferences->Fonts, i.e)

i did do a restart of xfs and X. but the change is seen everywhere except in the place im trying to see it.

any idea?

thanks!
 
Old 07-19-2003, 06:00 PM   #2
BlackMage
LQ Newbie
 
Registered: Jul 2003
Distribution: Slackware 9.0
Posts: 25

Rep: Reputation: 15
I had the same problem once, and I am here with a fix!

run /usr/X11R6/bin-fc-cache (slocate fc-cache if it's not there) as root!

If there is still a problem it will be because you aren't using freetype and/or ttmkfdr.
 
Old 07-19-2003, 06:32 PM   #3
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Original Poster
Rep: Reputation: 46
hi - thnx for the reply.
i just did the fc-cache (is it supposed to give any message?), and did an xfs and startx restart.
no change yet - i guess it might be what u suggested at the end.

i dont know what ttmkfdir does, as theres no info/man pages for it. l tried doing "ttmkfdir -d TTF" , where TTF is the folder i had stored the fonts in, and it gives an err msg 'Aborted'. Again, i dont know what its supposed to be doing, so ...

yelp!
 
Old 07-19-2003, 06:35 PM   #4
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Original Poster
Rep: Reputation: 46
and i looked in the fonts.dir file, and i see one of those fonts listed right at the end as "augie.ttf -misc-augie-medium-r-normal--0-0-0-0-p-0-iso10646-1" while the others are of the form "luxisri.ttf -b&h-Luxi Sans-medium-i-normal--0-0-0-0-p-0-iso8859-9"

again, i donno why this one font has been listed here out of the many i had added.
 
Old 07-19-2003, 06:50 PM   #5
BlackMage
LQ Newbie
 
Registered: Jul 2003
Distribution: Slackware 9.0
Posts: 25

Rep: Reputation: 15
First of all go to http://www.freetype.org/ and download the 1.* version, not freetype2! Unpack it and when installing do the following

./configure --enable-static
make
su -c "make install"

After this is done DO NOT DELETE THE SOURCE! Next you need to download the file at the following location:

http://www.joerg-pommnitz.de/TrueType/ttmkfdir.tar.gz

Extract that, and then edit Makefile so that the freetyp_lib variable, the first one in the file, points to the freetype source directory.

Then simply type:

make

to compile ttmkfdir. After this is done go back to the folder with your fonts in and:

/home/username/ttmkfdir directory herettmkfdir > font.scale

If all has been done correctly, you should now have a file in that directory called font.scale.

/usr/X11R6/bin/mkfontdir

and then

/usr/X11R6/bin/fc-cache

for good measure. After this song and dance is done the fonts should be available everywhere. This is the procedure I figured out when I had the same problem and it should work!

Last edited by BlackMage; 07-19-2003 at 06:52 PM.
 
Old 07-19-2003, 07:40 PM   #6
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Original Poster
Rep: Reputation: 46
hey man - thnx a millionfor ur time.
ok, i did all u suggested.

it created a new font.scale and mkfontdir created a new fonts.dir file, and all the fonts are listed in it.

i did an fc-cache - but still dont see anything listed.

and btw, i think open office is the only app recognizing those fonts on the system. nothing else seems to be pickin it up.

any ideas (more ... )

:-)
 
Old 07-19-2003, 07:40 PM   #7
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Original Poster
Rep: Reputation: 46
yeah, i did a restart too ...
 
Old 07-19-2003, 07:46 PM   #8
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Original Poster
Rep: Reputation: 46
when i said "i did an fc-cache - but still dont see anything listed.", i meant not llisted in the font selection menus for the various apps.

earlier it wasnt listed in the fonts.dir or fonts.scale files either (but these 2 have been changed now, and i guess are fine).
 
Old 07-19-2003, 07:50 PM   #9
BlackMage
LQ Newbie
 
Registered: Jul 2003
Distribution: Slackware 9.0
Posts: 25

Rep: Reputation: 15
check /etc/X11/XF86config and ensure that the directory with the fonts in is listed there!
 
Old 07-19-2003, 08:27 PM   #10
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Original Poster
Rep: Reputation: 46
hi - this is what i have in the /etc/X11/XF86Config file: (i have added the path to the folder)

Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "unix/:7100"
FontPath "/usr/X11R6/lib/X11/fonts/TTF"
EndSection


but still no fonts!
 
Old 07-19-2003, 08:28 PM   #11
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Original Poster
Rep: Reputation: 46
yeah, i went thro the fc-cache, and restart(xfs, startx) routine again!

:-(
 
Old 08-01-2003, 06:11 PM   #12
kirk76
LQ Newbie
 
Registered: Aug 2003
Posts: 1

Rep: Reputation: 0
Hi h/w

Check out

http://www.free-conversant.com/softedges/52

I was going through the exact same issue tonight and managed to fix it by following the instructions in the link above. When you run fc-cache you need to run it with the -v switch. You will then see a list of directories that are being looked in for fonts.

Hope this works for you.
 
Old 10-19-2003, 06:08 PM   #13
preswang
Member
 
Registered: Oct 2003
Location: UK/Chinese
Distribution: Slackware9.1
Posts: 55

Rep: Reputation: 15
Thanks all above guys, but I still got problem
I have complied freetype and ttmkfdir, but when I run
it shows:
bash-2.05b# ./ttmkfdir
./ttmkfdir: error while loading shared libraries: libttf.so.2: cannot open shared object file: No such file or directory

I think the GNU group should develop a good font manager soft for GNOME and KDE, I really be mad now.
 
Old 10-29-2003, 04:51 PM   #14
Fascistchicken
Member
 
Registered: Jul 2003
Location: hellifniknow
Distribution: slackware for chickens
Posts: 182

Rep: Reputation: 30
your missing the library there buddy
 
Old 10-28-2005, 11:34 AM   #15
DCool
LQ Newbie
 
Registered: Oct 2005
Location: Belchatow, Poland
Distribution: Slackware
Posts: 1

Rep: Reputation: 0
I used ldconfig and everything's working now
 
  


Reply


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
kde fonts compared to gnoome fonts jang Linux - Distributions 5 08-03-2007 10:03 AM
Fonts question: how to get a full list of fonts in Abiword vharishankar Linux - Software 1 03-17-2005 11:11 AM
is there a way to make Suse fonts look the same as knoppix fonts lemuel Linux - General 0 01-11-2005 09:27 AM
fonts.scale/fonts.dir: Naming convention kaon Linux - General 0 08-09-2004 05:02 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:05 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration