Font Selection doesn't use postscript font name
Currently, poppler selects by font family name using fonts specified in the PDF. However, often PDF fonts are specified using their postscript names.
This behaviour is present in 0.62 and git d70f77ee. Tested with fontconfig 2.12.6-0ubuntu2.
Steps to reproduce:
- Install msttcorefonts
- Download: https://www.unicode.org/notes/tn28/UTN28-PlainTextMath-v3.1.pdf
-
pdffonts -subst UTN28-PlainTextMath-v3.1.pdf
:
$ fc-match ArialMT
Vera.ttf: "Bitstream Vera Sans" "Roman"
$ fc-match :postscriptname=ArialMT
Arial.ttf: "Arial" "Regular"
$ fc-match TimesNewRomanPSMT
Vera.ttf: "Bitstream Vera Sans" "Roman"
$ fc-match :postscriptname=TimesNewRomanPSMT
Times_New_Roman.ttf: "Times New Roman" "Regular"
$ fc-match TimesNewRomanPS-ItalicMT
Vera.ttf: "Bitstream Vera Sans" "Roman"
$ fc-match :postscriptname=TimesNewRomanPS-ItalicMT
Times_New_Roman_Italic.ttf: "Times New Roman" "Italic"