[Fontconfig] Bug with Base35 fonts

Michael A. Peters mpeters at mac.com
Fri Feb 2 14:38:17 PST 2007


On Fri, 2007-02-02 at 12:32 -0800, Michael A. Peters wrote:
> On Fri, 2007-02-02 at 05:31 -0800, Michael A. Peters wrote:
> > Fedora Core 6 -
> > 
> > I've encountered what seems to be a bug when the base35 fonts from Adobe
> > are installed - particularly with Helvetica and Helvetica-narrow.
> > 
> > I reported it at fedora bugzilla -
> > 
> > https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=226973
> 
> While not the same issue, it also appears there is no provision for
> proper substitution of helvetica narrow by the URW font Nimbus Sans L
> Condensed on systems without the real adobe fonts.

On my system w/o the adobe fonts - I made the following:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- conf.d/sub-pixel.conf -->
<fontconfig>
        <alias>
          <family>Helvetica-Narrow</family>
          <accept><family>Nimbus Sans L Condensed</family></accept>
        </alias>
</fontconfig>

AbiWord (which uses fontconfig) still only used Nimbus Sans L for the
rtf that has both Hevetica and Helvetica-Narrow defined.

When I changed <family>Helvetica-Narrow</family> to <family>Helvetica
Narrow</family> (using space and not dash) and ran sed on rtf file to
change it there, it then behaved as it should.

So I think I might be able to figure out a with a match directive to
have it properly match Helvetica-Narrow (with the -) with the condensed
URW replacement - and if I do, I'll submit that as a patch to fedora
bugzilla.

But that would not solve the problem of having the real Helvetica-Narrow
installed reported in the bugzilla at the beginning of this thread,
where fontconfig is grabbing the metrics from Helvetica but grabbing the
shapes from Helvetica-Narrow.



More information about the Fontconfig mailing list