installing TTF fonts
Hello everybody!
Recently I have switched to Slack8.1, and as always I wanted to install True Type Fonts. All TTF fonts I have copied from WindowsXP. Then in Linux, I opened Kcontrol -> Fonts. And tried to install fonts, but KControl said the fonts are corrupted ( but I know they aren't). How can I install normal fonts? Maybe I can register them in the system manually? thnx |
become root. (su)
copy your fonts into a suitable directory. /usr/fonts is a good choice, make a subdirectory perhaps, (mkdir /usr/fonts/myfonts) cd into the directory and run /usr/bin/X11/mkfontdir /usr/bin/X11/mkfontscale at this point two new files, fonts.dir and fonts.scale should be created, by those commands. All you need to do is add this new directory to you X config file. open /etc/X11/XF86Config with your favorite text editor, and locate the lines which are like FontPath "/usr/share/font" etc. Add your own newly created font directory in there : FontPath "/usr/share/font/myfonts" and restart X. Have fun with your truetype fonts :) PS: These instructions are for slack 9 (that i run) , and I do not have any idea if they would work in 8.1 , so sorry if they don't :) |
Actually they are right on the money for Slack 8.1 (except for accidentally leaving out the "share" in the directory path in the first part of the reply of course - the directory intended is /usr/share/fonts). It is not the whole picture with Slackware 9, but if you use the /usr/share/fonts directory or create a subdirectory of it (no matter what you name it), it will work for everything in Slack 9 as well because the rest will be done automatically, but for it to be done automatically you must restart your computer rather than just X.
|
interesting ... can't find mkfontscale ???
|
When installing fonts with kcontrol the filenames off the ttf fonts MUST be all lowercase.
Or it wont work. |
can someone e-mail me mkfontscale file.
mailto: nautilus@ktv.lt |
All times are GMT -5. The time now is 10:07 AM. |