Bug 211 - Condensed fonts never matched with Nimbus Sans L
Summary: Condensed fonts never matched with Nimbus Sans L
Alias: None
Product: fontconfig
Classification: Unclassified
Component: library (show other bugs)
Version: 2.2
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Keith Packard
QA Contact:
Depends on:
Reported: 2004-02-22 15:06 UTC by Manish Singh
Modified: 2004-03-05 21:01 UTC (History)
0 users

See Also:
i915 platform:
i915 features:

Test program (525 bytes, text/x-csrc)
2004-02-22 15:07 UTC, Manish Singh

Description Manish Singh 2004-02-22 15:06:24 UTC
Fontconfig never seems to return condensed versions of Nimbus Sans L, even when
explictly asking for the width.

$ fc-list :family='Nimbus Sans L' family style slant width
Nimbus Sans L:style=Regular Italic:slant=100
Nimbus Sans L:style=Bold:slant=0
Nimbus Sans L:style=Regular:slant=0
Nimbus Sans L:style=Bold Condensed:slant=0:width=75
Nimbus Sans L:style=Bold Italic:slant=100
Nimbus Sans L:style=Regular Condensed Italic:slant=100:width=75
Nimbus Sans L:style=Regular Condensed:slant=0:width=75
Nimbus Sans L:style=Bold Condensed Italic:slant=100:width=75

fontconfig clearly sees Nimbus Sans L Regular Condensed has width=75. But when I
run the attached program with FC_DEBUG=1, the Condensed versioned is not match,
just the regular one is. Here's the output:

Match Pattern 15 of 16
        autohint: FcFalse(s)
        dpi: 75(f)(s)
        family: "Nimbus Sans L"(s) "Luxi Sans"(w) "Bitstream Vera Sans"(w)
"Verdana"(w) "Nimbus Sans L"(w) "Arial"(w) "Helvetica"(w) "Nachlieli"(w) "Kochi
Gothic"(w) "ZYSong18030"(w) "AR PL SungtiL GB"(w) "AR PL Mingti2L Big5"(w)
"Baekmuk Gulim"(w) "SimSun"(w) "sans-serif"(w)
        fontversion: 2147483647(i)(s)
        globaladvance: FcTrue(s)
        hinting: FcTrue(s)
        hintstyle: 3(i)(s)
        lang: "en-US"(s)
        pixelsize: 12.5(f)(s)
        scale: 1(f)(s)
        size: 12(f)(s)
        slant: 0(i)(s)
        verticallayout: FcFalse(s)
        weight: 80(i)(s)
        width: 75(i)(s)
Best score 0 0 0 100 4 0 0 0 0 0 0 0 0 0 2.14748e+11Pattern 12 of 12
        charset: set(s)
        family: "Nimbus Sans L"(s)
        file: "/usr/share/fonts/default/Type1/n019003l.pfb"(s)
        fontversion: 0(i)(s)
        foundry: "urw"(s)
        index: 0(i)(s)
        outline: FcTrue(s)
        scalable: FcTrue(s)
        slant: 0(i)(s)
        style: "Regular"(s)
        weight: 80(i)(s)
Comment 1 Manish Singh 2004-02-22 15:07:14 UTC
Created attachment 104 [details]
Test program
Comment 2 Manish Singh 2004-03-06 16:01:14 UTC
2004-03-06  Keith Packard  <keithp@keithp.com>
        * src/fcfreetype.c: (FcFreeTypeQuery):
        Force FC_FOUNDRY and FC_WIDTH to always be set so that
        matches looking for explicit values prefer exact matches

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.