LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Adding fonts in Slack 9 (https://www.linuxquestions.org/questions/slackware-14/adding-fonts-in-slack-9-a-59314/)

Locura 05-11-2003 10:36 PM

Adding fonts in Slack 9
 
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.

Thanks,
Erik

Obscure 05-12-2003 05:13 AM

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

Locura 05-12-2003 12:31 PM

So, running that fc-cache command will restart the font server and allow me to see my new fonts?

Obscure 05-12-2003 04:54 PM

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)

Locura 05-13-2003 01:47 PM

Well, I also seem to have no fc-cache command. Again, though, the man page is there, just no command. Am I missing a package or something?

Obscure 05-14-2003 05:35 AM

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...

JoooN 05-14-2003 05:56 AM

run /usr/X11R6/bin/fc-cache

Locura 05-14-2003 09:33 AM

I installed fontconfig, and was able to run fc-cache. Fonts work great now, thanks for all your help guys.

tipaul 05-14-2003 10:07 PM

Adding Fonts in Slack 9 - GDM FAILED!?
 
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?

Obscure 05-15-2003 03:14 AM

I'm not a font expert!!!

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...

tipaul 05-15-2003 10:09 PM

And Finally...!
 
HEY! You've managed to cure my problem!!! :D

The 444 (root=read, users=read and others=read) wasn't set!
There was only read for root enabled!

Now everything is back on track PLUS Windows Fonts Installed! :p

Big Thanks!

preswang 10-19-2003 05:24 PM

Quote:

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!

Obscure 10-20-2003 04:35 AM

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....

Rodrin 10-20-2003 10:31 PM

Take a look at this thread for more information:

http://www.linuxquestions.org/questi...threadid=77536


All times are GMT -5. The time now is 02:30 AM.