HELP WANTED: kdeprint with GNUlpr

James Richard Tyrer tyrerj at acm.org
Sat Nov 22 05:04:37 CET 2003


James Richard Tyrer wrote:
> Kurt Pfeifle wrote:
> 
>> James Richard Tyrer wrote:

>>> and it won't print PostScript data that doesn't have the fonts embedded. 
>>
>> Wrong too.
>>
>> CUPS doesn't need PostScript fonts embedded in the printfiles. (What it
>> *does* need is to have the fonts installed which may be referenced inside
>> the PostScript file, or have an appropriate replacement font available.
> 
> 
> You have used the term "installed" here.  What you said depends on your 
> definition of 'installed'.
> 
>> But this is what all spoolers need, which do PostScript processing and
>> not just "raw" spooling....
> 
> 
> No, for the LPR family, they don't care about the fonts, the fonts are a 
> GhostScript issue and if you have the fonts correctly set up for 
> Ghostscript, they will print.  A single exception that Greg Drummond 
> (the KFontInst guy) found was that fonts installed in $HOME 
> subdirectories would not print unless embedded.  This is the small bug 
> that the 'gsk' patch fixes; a problem that I think is probably caused by 
> a bug in Bash.
> 
> But, I have found NO way for this to work with CUPS unless you build 
> CUPS &/| GhostScript from source.  Well my kludge does work:
> 
> http://home.earthlink.net/~tyrerj/files/gs-fix/pstoraster
> 
> But, I don't consider it to be a satisfactory solution.  I haven't tried 
> Craig's solution with FooMatic.
> 
To rant on about this.  In my knudge hacked version of: "pstoraster", I removed these 
three lines:

# Set the library/font path...
GS_LIB="${CUPS_FONTPATH:=/usr/share/cups/fonts}"
export GS_LIB

Is it possible that the reason that CUPS can't find fonts correctly installed in 
GhostScript is that it throws the search path away?

So, my patch is to remove those three lines and make the script a login script.  But, 
there is no way that they would accept that because throwing the search path away was a 
design decision -- I have no idea what they were thinking about.

Note that this patch will not cause it to find fonts in $HOME; only the kludge hacked 
version of "pstoraster" does that.

--
JRT



More information about the kde-print mailing list