I admit, I haven't dug deep enough to quite get the state of GoFPF UTF-8 support. My first thought was that I needed to add UTF-8 font, but according to the AddUTF8Font docs,
It is not necessary to call this function for the core PDF fonts
(courier, helvetica, times, zapfdingbats).
Regardless, is that the workaround? Or is there a workaround? Are we currently limited to certain code pages?
Steps to reproduce:
create a new
*gofpdf.FPDF
:set the font to Courier 12:
write a bullet character,
•
(U+2022):write the PDF to a file:
Expected:
Actual:
•
Discussion:
I admit, I haven't dug deep enough to quite get the state of GoFPF UTF-8 support. My first thought was that I needed to add UTF-8 font, but according to the AddUTF8Font docs,
Regardless, is that the workaround? Or is there a workaround? Are we currently limited to certain code pages?