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 use the ms corefonts with slackware. On the display they look as they should do (with bytecode interpreter enabled in freetype). However, when I print a document written with say TimesNewRoman fonts from kword, the result is rather ugly (compared to the same document printed with ms word via wine). The letters are too near to each other. I tried different settings in cups (quality, resolution, paper size), with no success. Please help.
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541
Rep:
Something you need to understand about fonts -- whether they're TrueType or Adobe PostScript Type1 -- is that they should be installed in a standard place so that they're available to applications (not the other way around). In a Linux system (and many Unix-like systems as well), that's in a subdirectory in /usr/X11R6/lib/X11/fonts; in your case, possibly named /usr/X11R6/lib/X11/fonts/TTF and, after you've copied the '.ttf' files into that directory, and you've executed the mkfontdir and mkfontscale utilities in the directory to create the two index files needed. Both the copying and utilities should be done by root (or su, or whatever you prefer).
You do not need to specify any arguments to the utilities; just
cd /usr/X11R6/lib/X11/fonts/TTF
mkfontdir
mkfontscale
You need to edit the file /etc/X11/xorg.conf, adding a line
FontPath "/usr/X11R6/lib/X11/fonts/TTF/"
in the Files section of xorg.conf, then stop and restart the X server (so it will create entries in /etc/fonts) for your additional font path (the font path will now include /usr/X11R6/lib/X11/fonts/TTF, and applications will "know" where to find the TrueType font files you added).
After you've done the above (don't forget to stop and restart the X server), you'll probably have better luck with your browser display, word processing display and printed output.
Thanks for the answers. I installed the fonts according to the common how-tos for this task. As I said, the only problem is printing the windows fonts (@davidsrsb: yes, the characters are the fonts as I expected, but the overall appearance of the printed document is ugly due to the messed-up distances between the characters). Applications (whether they are qt or gtk-based) all look fine with the fonts. Could the /etc/fonts/fonts.conf file have any effect on printing the fonts?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.