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
Version-Release number of selected component (if applicable):
Created attachment 96308 [details]
fontconfig support patch
Why is PKG_CHECK_MODULES copied into configure.ac? It should be
added to aclocal.m4 by aclocal.
Because ghostscript has some trick to build itself and aclocal breaks it.
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.
It needs to patch src/unix-gcc.mak rather than Makefile directly,
since we build Makefile after applying the patches.
That was easy -- just needed to edit the filename in the patch.
Next issue: we can't default to spewing debug messages out.
I've commented out these:
DEBUG: FC_OUTLINE mismatch
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?
Please take a look at ghostscript-7.07-13, which incorporates your
patch with the modifications I've made.
assuming .font is symlinked to TrueType font. basically it should be
duplicate. so no problem to always disallow it.