Bug 689334 - Add CUPS fonts directory to default font path
Summary: Add CUPS fonts directory to default font path
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: Build Process (show other bugs)
Version: master
Hardware: All All
: P4 normal
Assignee: Ralph Giles
Depends on:
Blocks: 689315
  Show dependency tree
Reported: 2007-07-04 10:09 UTC by Till Kamppeter
Modified: 2008-12-19 08:31 UTC (History)
1 user (show)

See Also:
Word Size: ---

Add CUPS's font path to the search path of GS (1.65 KB, patch)
2007-07-04 10:10 UTC, Till Kamppeter
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Till Kamppeter 2007-07-04 10:09:45 UTC
In the ./configure process of ESP Ghostscript the CUPS font path is added to
Ghostscript's font path if CUPS is present at build time. This should be added
also to GPL Ghostscript, as distros are switching to GPL Ghostscript now after
the merger and users should not perceive regressions.

Patch attached.
Comment 1 Till Kamppeter 2007-07-04 10:10:46 UTC
Created attachment 3160 [details]
Add CUPS's font path to the search path of GS
Comment 2 Ralph Giles 2007-07-10 10:11:47 UTC
Seems reasonable, but doesn't the fontconfig patch also take care of this? Why
does cups have it's own font path in the first place?
Comment 3 Till Kamppeter 2007-07-10 10:31:41 UTC
The fontpath should perhaps serve for systems which do not provide fontconfig.

Mike, what is your motivation of adding the CUPS fontpath (and CUPS having its
own fontpath)?
Comment 4 Michael Sweet 2007-07-10 21:40:11 UTC
CUPS has its own font path because there a) may not be printer-suitable fonts
installed on the system and b) even if there are, you may want to use specific
fonts for printing. Using CUPS_FONTPATH (at least from the pstoraster script) is
definitely needed, since not all application embed their fonts... :(

Also, only Linux has fontconfig support...
Comment 5 Ralph Giles 2007-10-24 16:32:52 UTC
Committed in r8318.