Closed punnerud closed 1 year ago
Hi @punnerud When you don't add a font, you are not using the system font Courier - you are in fact using the standard PDF font courier. The PDF specification has 14 standard fonts all readers must support and they have the basic 256 ascii characters only.
When you add a TTF font, fpdf allows you to use any glyph available on the font and it will be embedded into the resulting PDF file.
This is not a bug in fpdf2, but a limitation of the PDF standard.
Does @andersonhc answer clarifies the situation for you @punnerud? 🙂
regardless, the idea that the system font Courier and the standard PDF font Courier are distinct is confusing -- maybe we add a note in the docs and a link to the error message?
The peculiarities of the PDF format can indeed be confusing... :wink:
I can include a notice to #975. There's no extra page in the docs talking specifically about font issues, so that seems like a good place.
Error details
Minimal code
Environment Please provide the following information:
fpdf2
version used: 2.7.6The font Courier on Mac containes the characters ┘└┌┐├┼┬┤│─┴. If I add Courier manually it works: