SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm a newbie to Slackware, I am trying it out as an alternative to the Mandrake distros I have been using for some time now. I got everything running well for the most part, but I can't seem to get imported fonts to work, or even figure out how to restart xfs for that matter.
On Mandrake this is how I got them to work: First, I went to the directory all the other fonts were in, /usr/X11R6/......./fonts and created 2 directories, one for windows TTF fonts which I copied from my windows partition, and another for the artwiz fonts for Fluxbox. I then put the fonts in their respective directories, ran mkfontdir for the artwiz fonts, ran ttmkfdir >fonts.dir for the windows fonts. Then I edited /etc/X11/fs/config, and added the paths to the 2 new directories to the "catalog" entry in that file. Then I also added the new directories to /etc/X11/XftConfig. When I had done that, I ran /etc/rc.d/init.d/xfs restart, and voila, fonts work.
Now, it appears to me that Slackware deals with fonts in a completely different manner than MDK, which is not really all that surprising since MDK decides to change how they deal with fonts from version to version.
So far, in Slackware 9.0 I have created the directories for my new fonts, and copied the fonts I want to add to these new directories (a la what I did for Mandrake). I tried running ttmkfdir and mkfontdir (as root of course), and the commands do not even seem to be present on my system, though their man pages are. No worries, I just mounted my Mandrake partition and copied the fonts.dir files over. I then added the 2 new directories to /etc/X11/fs/config.
The problem I am having now, is that I have no XftConfig file. Nor do I see an init.d directory in /etc/rc.d (I am guessing this is MDK-specific?). And I can't seem to find the location of the xfs script so I can restart the font server (possibly also MDK-specific). I tried rebooting to let the font server reinitialize, and I couldn't see my new fonts.
If anyone could provide some insight as to how I can get these fonts working in Slackware, I would appreciate it.
So yr problem is normal!! On SLack 9.0 doesn't exists mkfontdir...
You must follow these steps:
1- Create yr directory and copy the fonts inside
2- Add yr directory path to the file /etc/X11/XF86Config (at the lines FontPath...)
3- Run INTO yr font directory: fc-cache -f
Yes!! The font server is integrated with XFree (I'm talking about XFree version 4.3.0)!
fc-cache -f rebuild the fonts.dir and fonts.scale files but you must tell to X to use this type of file adding a line in /etc/X11/XF86Config as shown in previous msg
Remember to use -f option to REbuild the file indexs (fonts.dir and fonts.scale)
It's strange!!
If you have Slack 9.0 and Xfree 4.3.0 fc-cache command should be installed!!Maybe is in a different path!
I don't know from which pkg or apps comes this command!!
Anyone knows??
I'll try to find an answer...
I've used the 3 steps mentionned above... But I have a BIG problem:
When my Slack box is starting and come up to the start of GDM, it keeps restarting GDM (4-5 times) and after that, I got a message that "...Display 0:..." is deactivated...
I've started slack under runlevel 3, test it with startx under user and root and it works well...
So it seems that gdm is bugging with the newly installed fonts...
The steps I've done is:
(1) Create TTF2 dir under /usr/X11R6...FONTS dir...
(2) Copied all my fonts (.TTF files only) from my WindowsXP fonts directory to TTF2...
(3) executed fc-cache -f under the TTF2 dir...
(4) added TTF2 directory to /etc/X11/XF86Config
===================
Now, I've removed TTF2 dir, re-run fc-cache -f , deleted TTF2 entry in my XF86Config... And everything is back to normal!!!...
Is there something special about GDM involving fonts installation?
Yr steps are correct and the problem really seems on gdm!!
Remember to check that all font files must have read permision (444)
In XF86Config file, the FontPath lines have a order priority!
Maybe gdm has a problem with this!Try to add yr font-line at the last of FontPath list....
And you should control which fonts gdm uses...
Originally posted by Obscure So yr problem is normal!! On SLack 9.0 doesn't exists mkfontdir...
You must follow these steps:
1- Create yr directory and copy the fonts inside
2- Add yr directory path to the file /etc/X11/XF86Config (at the lines FontPath...)
3- Run INTO yr font directory: fc-cache -f
All should works!!!
Bye
Obscure
I have done the 3 steps, but I still can not see the ttf fonts. Should I need to use ttmkfdir?
Thanks!
Probably yes!
Normaly the 3 steps works!!
ttmkfontdir crate a fonts.dir file for your true type fonts
Probably the previous users just add the new fonts at TTF dir just present and the fonts.dir was already present into!
Probably if you crate a new dir you need to create a new fonts.dir with ttmkfontdir
Probably....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.