I have invoice PDF where the shop’s software uses Courier New and Courier New Bold fonts. However, both Evince and
fc-match decide (assuming through Fontconfig) that my Windows 8.1 original Courier New Bold in
courbd.ttf is not the best match and it decides to use DejaVu Sans Book instead. This completely breaks the PDF rendering in Evince.
This is best demonstrated using
fc-match "Courier New Bold":
/usr/share/fonts> fc-match "Courier New Bold" DejaVuSans.ttf: "DejaVu Sans" "Book"
If I up the debugging output for Fontconfig using
FC_DEBUG=2 environment variable I can see it looking at my
courbd.ttf but somehow it rejects it in favour of DejaVu Sans.
This is all on Ubuntu/Xubuntu 19.04.