fc-match matching italic style even though regular or bold is specified
Hi, I am experiencing a problem with the newest version of fonconfig (2.13.94) where fc-match matches the italic style of the font otb-uw_ttyp0 even though it has been specified that the style should be regular or bold. This only happens for the font sizes where the font has an italic version. That is the font comes in the following sizes: 6x11, 6x12, 7x13, 7x14, 8x15, 8x16, 9x17, 9x18 and 11x22. The italic version of the font exists in the following sizes: 8x15, 8x16, 9x17 and 9x18. There is only a problem for the sizes 8x15, 8x16, 9x17 and 9x18.
There is e.g. no problem if I use the following commands, then I get the expected outputs:
command | output |
---|---|
fc-match "UW Ttyp0:style=Regular:pixelsize=14" |
UW-Ttyp0.otb: "UW Ttyp0" "Regular" |
fc-match "UW Ttyp0:style=Bold:pixelsize=14" |
UW-Ttyp0-Bold.otb: "UW Ttyp0" "Bold" |
But for the following commands it matches the italic style:
command | output |
---|---|
fc-match "UW Ttyp0:style=Regular:pixelsize=16" |
UW-Ttyp0-Italic.otb: "UW Ttyp0" "Italic" |
fc-match "UW Ttyp0:style=Bold:pixelsize=16" |
UW-Ttyp0-Italic.otb: "UW Ttyp0" "Italic" |
I did not experience this issue before version 2.13.94 and the problem goes away when I downgrade to version 2.13.93.