Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problem printing webpages (fonts)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
nickp
n00b
n00b


Joined: 03 Feb 2003
Posts: 52

PostPosted: Fri Feb 07, 2003 9:26 pm    Post subject: problem printing webpages (fonts) Reply with quote

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
View user's profile Send private message
Ian Goldby
Guru
Guru


Joined: 18 May 2002
Posts: 539
Location: (Inactive member)

PostPosted: Mon Feb 10, 2003 7:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
nickp
n00b
n00b


Joined: 03 Feb 2003
Posts: 52

PostPosted: Sat Feb 15, 2003 7:02 pm    Post subject: how to add GS_FONTPATH Reply with quote

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
View user's profile Send private message
Ian Goldby
Guru
Guru


Joined: 18 May 2002
Posts: 539
Location: (Inactive member)

PostPosted: Sat Feb 15, 2003 9:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
nickp
n00b
n00b


Joined: 03 Feb 2003
Posts: 52

PostPosted: Tue Feb 18, 2003 12:27 am    Post subject: Fonts Reply with quote

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
View user's profile Send private message
Ian Goldby
Guru
Guru


Joined: 18 May 2002
Posts: 539
Location: (Inactive member)

PostPosted: Tue Feb 18, 2003 7:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
nickp
n00b
n00b


Joined: 03 Feb 2003
Posts: 52

PostPosted: Wed Feb 19, 2003 6:31 pm    Post subject: fonts Reply with quote

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
View user's profile Send private message
Ian Goldby
Guru
Guru


Joined: 18 May 2002
Posts: 539
Location: (Inactive member)

PostPosted: Wed Feb 19, 2003 7:05 pm    Post subject: Reply with quote

Sorry, I've never encountered this problem. You could check your CUPS settings (assuming you are using CUPS).
Back to top
View user's profile Send private message
bendy
Apprentice
Apprentice


Joined: 18 May 2002
Posts: 274
Location: Gloucester, UK

PostPosted: Wed Feb 19, 2003 9:16 pm    Post subject: Reply with quote

This sounds like the problem I've been having - see this post https://forums.gentoo.org/viewtopic.php?t=35915. I haven't found the answer.....

bendy
Back to top
View user's profile Send private message
nickp
n00b
n00b


Joined: 03 Feb 2003
Posts: 52

PostPosted: Thu Feb 20, 2003 5:52 am    Post subject: fonts printing - I guess it is a kde ony problem Reply with quote

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
View user's profile Send private message
bendy
Apprentice
Apprentice


Joined: 18 May 2002
Posts: 274
Location: Gloucester, UK

PostPosted: Sat Feb 22, 2003 10:28 am    Post subject: Reply with quote

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
View user's profile Send private message
nickp
n00b
n00b


Joined: 03 Feb 2003
Posts: 52

PostPosted: Thu Feb 27, 2003 4:58 am    Post subject: KDE Printpreview Reply with quote

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 :D
Back to top
View user's profile Send private message
bendy
Apprentice
Apprentice


Joined: 18 May 2002
Posts: 274
Location: Gloucester, UK

PostPosted: Thu Feb 27, 2003 10:22 pm    Post subject: Reply with quote

Nice one Nick - that fixed it for me as well.

Cheers,

bendy
Back to top
View user's profile Send private message
danzvash
n00b
n00b


Joined: 01 May 2002
Posts: 62
Location: London, UK

PostPosted: Fri Jun 13, 2003 8:56 am    Post subject: Reply with quote

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
View user's profile Send private message
chrishajer
n00b
n00b


Joined: 01 Nov 2002
Posts: 2

PostPosted: Sat Jun 14, 2003 10:25 pm    Post subject: Re: KDE Printpreview Reply with quote

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
View user's profile Send private message
danzvash
n00b
n00b


Joined: 01 May 2002
Posts: 62
Location: London, UK

PostPosted: Sun Jun 15, 2003 9:00 am    Post subject: Reply with quote

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
View user's profile Send private message
chrishajer
n00b
n00b


Joined: 01 Nov 2002
Posts: 2

PostPosted: Sun Jun 15, 2003 8:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum