LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-22-2006, 11:34 AM   #1
ons
LQ Newbie
 
Registered: Aug 2006
Posts: 5

Rep: Reputation: 0
printing windows truetype fonts


Hello

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.
 
Old 08-22-2006, 12:19 PM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
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.
 
Old 08-22-2006, 09:25 PM   #3
davidsrsb
Member
 
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770

Rep: Reputation: 33
Have a VERY close look at the characters to see if they are the font that you expect. Font substitution always messes up printing
 
Old 08-23-2006, 03:40 AM   #4
ons
LQ Newbie
 
Registered: Aug 2006
Posts: 5

Original Poster
Rep: Reputation: 0
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?
 
Old 08-23-2006, 06:05 AM   #5
davidsrsb
Member
 
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770

Rep: Reputation: 33
Messed up spacing means a kerning problem
 
Old 08-23-2006, 06:30 AM   #6
ons
LQ Newbie
 
Registered: Aug 2006
Posts: 5

Original Poster
Rep: Reputation: 0
I'm using Slackware 10.2 with kernel 2.16.27. Which kernel parameters could affect printing?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
truetype fonts wetnose23 Slackware 14 10-06-2008 07:39 AM
TrueType fonts not printing in Mozilla terosaur Slackware 1 02-15-2004 08:16 AM
Truetype fonts wonderpun Linux - Software 2 10-09-2002 11:47 AM
StarOffice 5.2 and truetype fonts stodge Linux - General 0 01-07-2002 03:04 PM
TrueType Fonts under X B_Balazs Linux - Newbie 1 07-25-2001 08:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration