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.
when i copy my windows .ttf fonts to /usr/X11/lib/fonts/TTF and reboot, the fonts show up in the selection lists (using KDE right now), but when i select them all i get is little square boxes. the same thing happens if i make a /usr/share/fonts directory and put them in there. if i put them in ~/.fonts they're not even recognized, but i'm okay with that for now b/c i'd rather have them in one of the other directories.
the bitsream vera fonts i installed work fine (except in mozilla still working on that) -- do i need to install the win .ttf fonts somehow also? all of the other threads i read here said just to copy them into the directories mentioned and reboot. i uncommented the load .ttf lines in XF86Config, if that matters (apparently it doesn't ).
Well this is not a sollution to your problem, but I've seen alot of people rebooting after adding some fonts. Why?? if you can just (after the fonts are added to the dir):
Code:
xset +fp /font/path
mkfontdir
xset fp rehash
And, if you haven't already done it, add the font-path to font section in XF86Config.
Sorry that I didn't answer your question, but at least you won't reboot the next time you add fonts.
$ xset +fp /usr/share/fonts
xset: bad font path element (#64), possible causes are:
Directory does not exist or has wrong permissions
Directory missing fonts.dir
Incorrect font server address or syntax
as root it says command not found.
yes, the path (/usr/share/fonts) is in XF86Config, but again the MS ttf fonts are showing up as the little boxes in KDE, and not showing up in mozilla at all. thx.
>edit: i'm just wondering if i missed something during slackware installation that i need to make the fonts available?
Last edited by synaptical; 07-27-2003 at 03:43 PM.
inside the directory which contains your fonts, and:
Code:
xset fp rehash
after that?
And another thing. Does this fonts have any specific encoding (character set)? Becouse i had the same problem when setting my X to show Slovenian fonts which have iso8859-2 (latin2) encoding. And than I had to specify in .Xdefaults which fonts xterm should use. It looks like this:
i downloaded some microsoft TT fonts and extracted them with the cabextract utility. then i copied them to /usr/share/fonts, with that path still added in XF86Config. so far that has worked (only tried a couple), but they still don't show up in mozilla. i guess that is an "xtt" problem? though the only fixes i have seen for that say to just download the xtt rpm, which i don't want to do w/slack. if anyone has any pointers on documentation to fix that without using rpm, appreciate.
so i guess now the question is, why would fonts get corrupted just copying them from my windows drive to slack? maybe burning them to cd and then copying them into linux would work (would like t know b4 wasting a CD)? or maybe this is now a "linux general" question and not a slack question? (mods feel free to move it )
I can't help you around mozilla, but when it comes to RPM, you can use rpm2tgz (rpm2gz) command to convert the packages. There are no man pages for this command, just run it withhout any options and it will give you some information.
This sounds like it might be a permissions problem. By the way, Mozilla in Slack 9 uses fontconfig, and synaptical took the correct approach for adding True Type fonts to it and other fontconfig programs. It's true that he does not need to reboot to get the fonts to work for these programs. He could just run fc-cache on the directories he installed the fonts in, but rebooting in Slack 9 does this automatically for fonts in the directory /usr/X11R6/lib/fonts and its subdirectories as well as /usr/share/fonts and its subdirectories. Since he already did this, the most likely problem would seem to be that he failed to grant world read permission to the fonts he installed.
If you want to grant read permission to those fonts, just go, as root, to the directories you installed the fonts in and run the command
chmod 644 *.ttf *.TTF
or
chmod +r *.ttf *.TTF
See if that improves your situation at all.
By the way, here is the full procedure that I use to make True Type fonts available to my X Window programs that don't use fontconfig. Run, as root, in the directory where you have put the fonts the following commands:
/usr/X11R6/bin/mkfontscale
(don't leave this out) and
/usr/X11R6/bin/mkfontdir
(the order is important; I accidentally had it the wrong way around before)
Then also add fontpath statements pointing to the directories you have the fonts in under the Files section of your XF86Config file, if they're not already there. For example:
fontpath "/usr/share/fonts/TTF/"
Then add a
Load "freetype"
line under the Modules section of your XF86Config file, again, if it's not already there.
Also most font related questions for Slackware 9 are fairly unique to it, so these aren't really general Linux questions. Fonts setup approaches vary from distribution to distribution.
P.S. Incidentally, I have recently run into a machine where True Type fonts were installed to the directory /usr/share/fonts, not a subdirectory of it, and the fonts were no properly recognized by fontconfig until I moved them to a subdirectory. So this also could be a problem.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.