Bug 111412 - [RFE] fontconfig support
Summary: [RFE] fontconfig support
Alias: None
Product: Fedora
Classification: Fedora
Component: ghostscript   
(Show other bugs)
Version: 1
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Mike McLean
Keywords: FutureFeature
Depends On:
TreeView+ depends on / blocked
Reported: 2003-12-03 12:01 UTC by Akira TAGOH
Modified: 2007-11-30 22:10 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-12-05 18:10:42 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
fontconfig support patch (19.56 KB, patch)
2003-12-03 12:02 UTC, Akira TAGOH
no flags Details | Diff

Description Akira TAGOH 2003-12-03 12:01:24 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; ja-JP; rv:1.2.1)

Description of problem:
To enhance the behavior, supporting fontconfig to get the valid font
list is good idea IMO. it saves the trouble and we no longer need to
describe the font list in Fontmap/CIDFnmap except describing the aliases.
patch will be attached. please review it whether it's worth to apply
for us.

Version-Release number of selected component (if applicable):

Comment 1 Akira TAGOH 2003-12-03 12:02:08 UTC
Created attachment 96308 [details]
fontconfig support patch

Comment 2 Miloslav Trmac 2003-12-03 19:18:05 UTC
Why is PKG_CHECK_MODULES copied into configure.ac? It should be
added to aclocal.m4 by aclocal.

Comment 3 Akira TAGOH 2003-12-04 03:03:29 UTC
Because ghostscript has some trick to build itself and aclocal breaks it.

Comment 4 Akira TAGOH 2003-12-04 03:21:23 UTC
Also, attached patch is a bit RH specific to be able to apply it for
us. re-running autotools stuff will also breaks our build. so
basically we don't need the changes of configure.ac, though.

Comment 5 Tim Waugh 2003-12-05 12:53:42 UTC
It needs to patch src/unix-gcc.mak rather than Makefile directly,
since we build Makefile after applying the patches.

Comment 6 Tim Waugh 2003-12-05 13:33:16 UTC
That was easy -- just needed to edit the filename in the patch.

Next issue: we can't default to spewing debug messages out.

Comment 7 Tim Waugh 2003-12-05 15:07:32 UTC
I've commented out these:

DEBUG: neither TrueType font nor OpenType font
DEBUG: growing the dictionary: max: %d
DEBUG: psname: %s, file: %s, idx: %d

In one of the functions '.font' seems to be an allowed extension, but
in the other it is not -- is that intentional?

Comment 8 Tim Waugh 2003-12-05 16:30:26 UTC
Please take a look at ghostscript-7.07-13, which incorporates your
patch with the modifications I've made.

Comment 9 Akira TAGOH 2003-12-08 00:39:09 UTC
assuming .font is symlinked to TrueType font. basically it should be
duplicate. so no problem to always disallow it.

Note You need to log in before you can comment on or make changes to this bug.