Package:    fontconfig (and/or possibly libfontconfig1)
Version:    2.11.0-6.3+deb8u1

When a type1 font supplies a Book weight (weight=75), NO Regular weight, NO Normal weight, and a Medium weight (weight=100) - fontconfig should select the Book weight (closest value) when Regular (weight=80) or Normal (weight=80) or no weight (implied Normal/Regular) is specified. It does not: Regular selects Book, Normal selects Medium, and unspecified selects Medium.

Example: Folio

$ fc-list "Folio" file family style weight
/home/user/.fonts/Folio/foliobc.pfb: Folio:style=Bold Condensed:weight=200
/home/user/.fonts/Folio/foliob.pfb: Folio:style=Bold:weight=200
/home/user/.fonts/Folio/folion.pfb: Folio:style=Book:weight=75
/home/user/.fonts/Folio/folioxb.pfb: Folio:style=Extra Bold:weight=205
/home/user/.fonts/Folio/foliol.pfb: Folio:style=Light:weight=50
/home/user/.fonts/Folio/foliom.pfb: Folio:style=Medium:weight=100
/home/user/.fonts/Folio/folioli.pfb: Folio:style=Light Italic:weight=50
$ fc-match "Folio"
foliom.pfb: "Folio" "Medium"
$ fc-match "Folio:Regular"
folion.pfb: "Folio" "Book"
$ fc-match "Folio:Normal"
foliom.pfb: "Folio" "Medium"

Example: ITC Kabel

$ fc-list "ITC Kabel" file family style weight
/home/user/.fonts/Kabel-ITCKabel/kabelm.pfb: ITC Kabel:style=Medium:weight=100
/home/user/.fonts/Kabel-ITCKabel/kabeln.pfb: ITC Kabel:style=Book:weight=75
/home/user/.fonts/Kabel-ITCKabel/kabeld.pfb: ITC Kabel:style=Demi:weight=180
$ fc-match "ITC Kabel"
kabelm.pfb: "ITC Kabel" "Medium"
$ fc-match "ITC Kabel:Regular"
kabeln.pfb: "ITC Kabel" "Book"
$ fc-match "ITC Kabel:Normal"
kabelm.pfb: "ITC Kabel" "Medium"

All fonts are from the Bitstream collection as distributed with Corel Draw 8. Also replicated with Futura, ITC Eras from same source.

Workarounds: 1) Specify exact weight Book to avoid error, or 2) remove the Medium weight pfb/afm files if your application cannot select Book (Regular/Normal/unspecified will then select Book as expected).

Reply via email to