fc-match Courier:spacing=0 ⇒ n022024l.pfb: "Nimbus Mono L" "Bold Oblique"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fontconfig |
Invalid
|
Medium
|
|||
poppler (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
it seems like there are quite a lot of bugs about fontconfig doing the wrong thing. here's one more.
when trying to match plain Courier (non-bold, non-oblique) with additional constraint "spacing=0" you end up with Bold, Oblique Nimbus Mono.
Here's
$ FC_DEBUG=1 fc-match Courier:spacing=0
on my hardy box:
Match Pattern has 18 elts (size 32)
family: "Courier"(s) "Liberation Mono"(w) "Nimbus Mono L"(w) "Nimbus Mono L"(s) "NimbusMonL-
slant: 0(i)(s)
weight: 100(i)(s)
width: 100(i)(s)
size: 12(f)(s)
pixelsize: 12.5(f)(s)
spacing: 0(i)(s)
hintstyle: 3(i)(s)
hinting: FcTrue(s)
verticallayout: FcFalse(s)
autohint: FcFalse(s)
globaladvance: FcTrue(s)
dpi: 75(f)(s)
scale: 1(f)(s)
lang: "en-CA"(s)
fontversion: 2147483647(i)(s)
embeddedbitmap: FcTrue(s)
decorative: FcFalse(s)
Best score 0 0 3 100 2 0 0 0 11000 10000 0 0 0 0 0 2.14748e+11Pattern has 15 elts (size 15)
family: "Nimbus Mono L"(w)
style: "Bold Oblique"(w)
slant: 110(i)(w)
weight: 200(i)(w)
width: 100(i)(w)
foundry: "urw"(w)
file: "/usr/share/
index: 0(i)(w)
outline: FcTrue(w)
scalable: FcTrue(w)
charset: 0000: 00000000 ffffffff ffffffff 7fffffff 00000000 ffffdffe ffffffff ffffffff
0001: ffffffff ffffffff fffff1ff ffffffff 00040000 00000000 00000000 00000000
0002: 03000000 00000000 00000000 00000000 00000000 00000000 3f0000c0 00000000
0004: ffffffff ffffffff ffffffff 00000000 0ccf0000 0ccff00c faff0007 033ffffc
0020: 77180000 06010047 00000010 00000000 00000000 00001000 00000000 00000000
0021: 00400000 00000004 00000000 00000000 00000000 00000000 00000000 00000000
0022: 44060044 00000000 00000000 00000031 00000000 00000000 00000000 00000000
0025: 00000000 00000000 00000000 00000000 00000000 00000000 00000400 00000000
00f6: 00000000 00000000 00000000 00000000 00000000 00000000 000001f8 00000000
00fb: 00000006 00000000 00000000 00000000 00000000 00000000 00000000 00000000
(w)
lang: aa|ast|
fontversion: 0(i)(w)
fontformat: "Type 1"(w)
decorative: FcFalse(w)
n022024l.pfb: "Nimbus Mono L" "Bold Oblique"
Without specifying "spacing=0" I get the expected output (or at least an acceptable one: "Nimbus regular", although I would prefer one of the fonts I explicitly installed from liberation or the courier from msttcorefonts).
So why do I care about "spacing=0"? This is what poppler requests when you open the attached PDF file using evince. The PDF includes no font information since "Courier" is one of the PDF base fonts. fontconfig gives evince the bold/oblique font which results in incorrect output.
Changed in fontconfig: | |
status: | Unknown → Confirmed |
Changed in fontconfig: | |
status: | Confirmed → Invalid |
Changed in fontconfig: | |
importance: | Unknown → Medium |
status: | Invalid → Unknown |
Changed in fontconfig: | |
importance: | Medium → Unknown |
Changed in fontconfig: | |
importance: | Unknown → Medium |
Changed in fontconfig: | |
status: | Unknown → Invalid |
Created an attachment (id=18764)
fo file