View previous topic :: View next topic |
Author |
Message |
nickp n00b
Joined: 03 Feb 2003 Posts: 52
|
Posted: Fri Feb 07, 2003 9:26 pm Post subject: problem printing webpages (fonts) |
|
|
Hi
After I have successfully installed my Cups print server and printing just works fine. There is still one hurdle I do not know how to get around. When I try to print some web pages the fonts of the printout look often very ugly. Is there maybe a way to solve that last tiny problem.
Thanks
Nick |
|
Back to top |
|
|
Ian Goldby Guru
Joined: 18 May 2002 Posts: 539 Location: (Inactive member)
|
Posted: Mon Feb 10, 2003 7:25 pm Post subject: |
|
|
Probably GhostScript is not able to see your X11 fonts, so it is substituting fonts it can find as best it can.
I think the easiest way to get GhostScript to see your X11 fonts is to set the GS_FONTPATH environment variable to point to them (usually in /usr/X11R6/lib/X11/fonts). |
|
Back to top |
|
|
nickp n00b
Joined: 03 Feb 2003 Posts: 52
|
Posted: Sat Feb 15, 2003 7:02 pm Post subject: how to add GS_FONTPATH |
|
|
Hi
Where do I set the GS_FONTPATH.
I tried it in /etc/env.d/00basic
but it does not work - actually I do not know how
to check if ghostview can see the fonds in that path?
Did I set the path correctly ?
thanks
Nick |
|
Back to top |
|
|
Ian Goldby Guru
Joined: 18 May 2002 Posts: 539 Location: (Inactive member)
|
Posted: Sat Feb 15, 2003 9:42 pm Post subject: |
|
|
Ok, I've done a bit of experimentation (I have to admit my system is not properly configured at the moment and my X11 fonts are badly messed up), and here's what I found:
Code: | (522) $ gs
ESP Ghostscript 7.05 (2002-06-28)
Copyright (C) 2002 artofcode LLC, Benicia, CA. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
GS>/Verdana findfont
Can't find (or can't open) font file /Resource/Font/Verdana.
Can't find (or can't open) font file Verdana.
Substituting font Courier for Verdana.
Loading NimbusMonL-Regu font from /usr/share/ghostscript/fonts/n022003l.pfb... 1999108 630027 1622424 329329 0 done.
GS<1>quit
~
(523) $ export GS_FONTPATH=/usr/X11R6/lib/X11/fonts/truetype
~
(524) $ gs
ESP Ghostscript 7.05 (2002-06-28)
Copyright (C) 2002 artofcode LLC, Benicia, CA. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
GS>/Verdana findfont
Scanning /usr/X11R6/lib/X11/fonts/truetype for fonts... 33 files, 32 scanned, 31 new fonts.
Loading Verdana font from /usr/X11R6/lib/X11/fonts/truetype/verdana.ttf... 2079492 698600 2197268 906465 0 done.
GS<1>quit |
You see the first time before GS_FONTPATH was set, GhostScript couldn't find Verdana, but afterwards it could. You can use this to prove whether GS_FONTPATH is working for you.
If you are not sure that you have set GS_FONTPATH correctly in /etc/env.d/00basic, just type env at the shell prompt and see if it is listed. Setting it in /etc/env.d/00basic should work, or if you prefer extreme tidiness, you could create a new file in env.d specifically for GhostScript. Don't forget to run env-update and then log out and back in again. |
|
Back to top |
|
|
nickp n00b
Joined: 03 Feb 2003 Posts: 52
|
Posted: Tue Feb 18, 2003 12:27 am Post subject: Fonts |
|
|
Thanks a lot for the instruction. I set the the GS path and /Verdana findfont does find the font. But my printouts look still not very promising.
When I try to print this forum page the text with the grey background
is still not readable. Is there anything else beside GS I have to take care of?
Thanks
Nick |
|
Back to top |
|
|
Ian Goldby Guru
Joined: 18 May 2002 Posts: 539 Location: (Inactive member)
|
Posted: Tue Feb 18, 2003 7:16 pm Post subject: |
|
|
Can you be more specific? I assumed from your initial description that you were getting the wrong fonts (e.g. Courier instead of Times or something), but now it sounds like it is something else that is wrong, but what? What is it about the text that makes it 'not readable'? |
|
Back to top |
|
|
nickp n00b
Joined: 03 Feb 2003 Posts: 52
|
Posted: Wed Feb 19, 2003 6:31 pm Post subject: fonts |
|
|
The problem is that some web pages like ( the gentoo forum ) look
ok on my screen when I use my whatever browser. once I try
to print that page the fonts on the print or on the print preview are
much wider than on the actual browser screen.
It looks like some fonds are available for x but not for gs?!
thanks
Nick |
|
Back to top |
|
|
Ian Goldby Guru
Joined: 18 May 2002 Posts: 539 Location: (Inactive member)
|
Posted: Wed Feb 19, 2003 7:05 pm Post subject: |
|
|
Sorry, I've never encountered this problem. You could check your CUPS settings (assuming you are using CUPS). |
|
Back to top |
|
|
bendy Apprentice
Joined: 18 May 2002 Posts: 274 Location: Gloucester, UK
|
|
Back to top |
|
|
nickp n00b
Joined: 03 Feb 2003 Posts: 52
|
Posted: Thu Feb 20, 2003 5:52 am Post subject: fonts printing - I guess it is a kde ony problem |
|
|
It looks like it is only a kde issue - the fonts look only strange when
viewing the page with konqueror. Are there maybe any settings I have to take care of? It seems also as I am not the first person having that kind of problem. I simply do not have any clue where to get additional info for that
specific issue.
Any further help is very much apreciated
Thanks
Nick |
|
Back to top |
|
|
bendy Apprentice
Joined: 18 May 2002 Posts: 274 Location: Gloucester, UK
|
Posted: Sat Feb 22, 2003 10:28 am Post subject: |
|
|
Further to my post above, I just discovered that if I use the kprinter "print to pdf" option, then view the resulting file in adobe acrobat viewer, the fonts are still screwed up.
Is it only me and nickp having this problem?
bendy. |
|
Back to top |
|
|
nickp n00b
Joined: 03 Feb 2003 Posts: 52
|
Posted: Thu Feb 27, 2003 4:58 am Post subject: KDE Printpreview |
|
|
I think I found the problem:
setting the "Embed fonts in PostScript data when printing" flag in the
kde print config menu (under fonts) did the trick.
Reagards
Nick |
|
Back to top |
|
|
bendy Apprentice
Joined: 18 May 2002 Posts: 274 Location: Gloucester, UK
|
Posted: Thu Feb 27, 2003 10:22 pm Post subject: |
|
|
Nice one Nick - that fixed it for me as well.
Cheers,
bendy |
|
Back to top |
|
|
danzvash n00b
Joined: 01 May 2002 Posts: 62 Location: London, UK
|
Posted: Fri Jun 13, 2003 8:56 am Post subject: |
|
|
Woohoo! That setting was the trick.
Finally I am getting proper prints from KDE.
Are we the only users to have encountered this problem, and also to require this setting in order to get sensible printing?
I usually find font behaviour between applications, and between software layers, to be fairly confusing. I'm sure it's all simpler than I imagine, but it still all looks a bit misty from where I'm sitting.
At least this is working now. Whew. |
|
Back to top |
|
|
chrishajer n00b
Joined: 01 Nov 2002 Posts: 2
|
Posted: Sat Jun 14, 2003 10:25 pm Post subject: Re: KDE Printpreview |
|
|
nickp wrote: |
setting the "Embed fonts in PostScript data when printing" flag in the
kde print config menu (under fonts) did the trick.
|
Can you elaborate on where this is changed exactly? I am having the same problem with printing from Konqueror when the font is not specified in the stylesheet or if it is specified as "Verdana, Arial, Helvetica, sans-serif".
See http://www.ilharley.com/konqueror.pdf for a PDF of a "Print to PDF" from kprinter of a Konqueror web page of this forum.
Thanks,
Chris Hajer[/url] |
|
Back to top |
|
|
danzvash n00b
Joined: 01 May 2002 Posts: 62 Location: London, UK
|
Posted: Sun Jun 15, 2003 9:00 am Post subject: |
|
|
chrishajer - i'm confused! It only took a second for me to find it at work on my machine there, and now I'm at home and i can't find it.
If you're still having trouble tomorrow, mail me and I'll let you know where it is..... |
|
Back to top |
|
|
chrishajer n00b
Joined: 01 Nov 2002 Posts: 2
|
Posted: Sun Jun 15, 2003 8:10 pm Post subject: |
|
|
Never mind, I found it. In the kprinter dialog, "System Options", "Fonts" then check "Embed fonts in PostScript data when printing". I found the dialog at home, now just need to apply it at work.
Thanks for looking.
Chris |
|
Back to top |
|
|
|