LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 07-04-2007, 07:03 PM   #1
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348

Rep: Reputation: 217Reputation: 217Reputation: 217
Adding new fonts in slack 12


My usual manner of adding fonts has been to use the KDE font installer either as root or in administrator mode. This will put the fonts in /usr/local/share/fonts and will result in these fonts being available system-wide.

This does not work (for me) in Slackware 12. They install fine, but are not recognized by any program. I ran mkfontdir, mkfontscale, and fc-cache in the /usr/local/share/fonts directory with no effect. I checked the fontpath in xorg.conf and it looked correct. Rebooting and/or restarting X had no effect.

The only way I could get my fonts recognized by anything was to install them into my /home/steve/.fonts directory. I ran mkfontdir, mkfontscale, and fc-cache on this directory and I can now access my fonts.

Not a big deal for me as I am just one user, but is there a way to install new fonts that are available system wide or will we now need to install all new fonts in each users home directory?

Thanks.
 
Old 07-04-2007, 07:18 PM   #2
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110
That's weird, I just tried it and it installed fine to /usr/local/share/fonts. But I think I'm having the same problem as you, as they show up in that directory but I can't use them. Honestly, I kind of like it that way though although I can see how a Sysadmin may have problems adding new fonts.
 
Old 07-04-2007, 07:31 PM   #3
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348

Original Poster
Rep: Reputation: 217Reputation: 217Reputation: 217
It doesn't bother me either - now that I know a work-around. Given that the default desktop environment expects to be able to do something that is seemingly no longer possible, some might consider this a bug. At any rate, whether it's a bug or a feature, I'm sure I'm not the only one that installs fonts this way. At least it's out there so people know they aren't alone.

Thanks for sharing my confusion.
 
Old 07-04-2007, 07:38 PM   #4
folkenfanel
Member
 
Registered: Sep 2004
Location: formerly Fanelia and Zaibach
Distribution: Slackware-current !
Posts: 342

Rep: Reputation: 59
Wink I don't know if this is the right way...

add an entry for /usr/local/share/fonts to your /etc/fonts/fonts.conf
 
Old 07-04-2007, 08:14 PM   #5
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348

Original Poster
Rep: Reputation: 217Reputation: 217Reputation: 217
Quote:
Originally Posted by folkenfanel
add an entry for /usr/local/share/fonts to your /etc/fonts/fonts.conf
I had tried that early on and it broke fc-cache with errors. That caused a bigger mess. Did this work for you? I also do not like to edit that file as it can really hose things if you don't know what you are doing.

My fix is much safer - still local fonts of course.

Last edited by Franklin; 07-04-2007 at 08:16 PM.
 
Old 07-04-2007, 09:45 PM   #6
folkenfanel
Member
 
Registered: Sep 2004
Location: formerly Fanelia and Zaibach
Distribution: Slackware-current !
Posts: 342

Rep: Reputation: 59
Thumbs up That did work for me

From my /etc/fonts/fonts.conf

Code:
<!-- Font directory list -->

	<dir>/usr/share/fonts/OTF</dir>
	<dir>/usr/share/fonts/TTF</dir>
	<dir>/usr/share/fonts/Type1</dir>
	<dir>/usr/share/fonts/Speedo</dir>
	<dir>/usr/share/fonts/cyrillic</dir>
	<dir>/usr/share/fonts/misc</dir>
	<dir>/usr/local/share/fonts</dir>
	<dir>~/.fonts</dir>
Notice that I added

Code:
<dir>/usr/local/share/fonts</dir>
 
Old 07-04-2007, 09:54 PM   #7
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348

Original Poster
Rep: Reputation: 217Reputation: 217Reputation: 217
Well, that's good to know!

I had added my line to the top of the list - perhaps that's what caused the error?
Like I said, I don't like to mess with some things. I know just enough to get into trouble.

Thanks.
 
Old 07-05-2007, 12:03 AM   #8
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,683

Rep: Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375
did you also add the line to your /etc/X11/xorg.conf file?
 
Old 07-05-2007, 12:31 AM   #9
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
/etc/fonts/local.conf is the proper place to include those - fonts.conf will be overwritten on upgrades of the fontconfig package.
You'll notice that local.conf is sourced from /etc/fonts/conf.d/51-local.conf (which is a symlink to /etc/fonts/avail.conf/51-local.conf
 
Old 07-05-2007, 05:53 AM   #10
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware
Posts: 1,348

Original Poster
Rep: Reputation: 217Reputation: 217Reputation: 217
Quote:
Originally Posted by rworkman
/etc/fonts/local.conf is the proper place to include those - fonts.conf will be overwritten on upgrades of the fontconfig package.
You'll notice that local.conf is sourced from /etc/fonts/conf.d/51-local.conf (which is a symlink to /etc/fonts/avail.conf/51-local.conf
What I notice is that /etc/fonts/local.conf does not exist. I can create one, but I thought this file was created by fontconfig. I haven't had to edit this file for some time so I don't remember what is supposed to be created.

I see that my slack 11 does not have this file either so I guess it is not normally generated. Taking a look at /etc/fonts/fonts.conf in slackware 11 shows that an entry for /usr/local/share/fonts was entered by the system at some point (not by me). So my question now is why do I need to create and edit an /etc/fonts/local.conf in slackware 12 for fonts in /usr/local/share/fonts to be recognised, but not in slackware 11?
 
Old 07-05-2007, 06:02 AM   #11
Carpo
Member
 
Registered: Aug 2003
Location: Somewhere
Distribution: Gentoo (for now)
Posts: 364

Rep: Reputation: 30
as root i norm copy .ttf files to /usr/X11R6/lib/X11/fonts/TTF and make sure the line pointing to that folder is in xorg.conf which it should already be
 
  


Reply



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
Live CD - adding fonts satimis Linux From Scratch 3 08-11-2005 12:29 AM
adding fonts marie-p Linux - Newbie 4 01-24-2005 10:34 AM
adding fonts to OOwriter jeanrev Linux - Software 2 09-02-2004 10:42 PM
Adding fonts in Slack 9 Locura Slackware 13 10-20-2003 10:31 PM
Adding fonts to linux The Jakale Linux - Newbie 3 04-30-2002 03:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:23 PM.

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
Open Source Consulting | Domain Registration