[poppler] Question regarding font selection

Pierre-Luc Samuel Pierre-Luc.Samuel at ticketmaster.com
Wed Jul 5 14:45:07 UTC 2017


On 17-07-04 06:43 PM, Albert Astals Cid wrote:
> El dimarts, 4 de juliol de 2017, a les 17:06:07 CEST, Pierre-Luc Samuel va
> escriure:
>> Hi,
>>
>> I am experiencing weird font substitution with pdftocairo and was
>> wondering what was the algorithm to match fonts when converting from
>> PDF.  The Courier font (regular) is being substituted "Nimbus Mono L
>> Bold", even if fc-match return the non-bold version.
>>
>> $ fc-match "Courier"
>> n022003l.pfb: "Nimbus Mono L" "Regular"
>>
>> $ fc-match "Courier:style=bold"
>> n022004l.pfb: "Nimbus Mono L" "Bold"
>>
>> What could be the reason behind this?
> The pdf font can be asking for bold even if the name doesn't contain bold.
>
Thanks for your answer Albert.  I have attached a sample PDF and 
resulting SVG with the problem I'm encountering.  I do not understand 
why the bold font is selected for the first "Courier".

pdftocairo version 0.56.0

Any clue?

Pierre-Luc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: courier.pdf
Type: application/pdf
Size: 67324 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/poppler/attachments/20170705/85ff6d1c/attachment-0001.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: courier.svg
Type: image/svg+xml
Size: 42718 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/poppler/attachments/20170705/85ff6d1c/attachment-0001.svg>


More information about the poppler mailing list