On Wed, 20 Mar 2019, LacaK wrote:
Is there way how to get correct PDF file WITHOUT embedding full
Courier font?
You can embed only the needed characters for every font ?
Probably yes, but fpPDF will not handle this automatically? AFAIK I
can not control this.
But why I get unreadable characters? What I am doing wrong ?
It seems that there is problem specific to CourierNew font (cour.ttf).
With Arial (arial.ttf) it works as expected.
Attached program which demonstrates problem.
Reported as bug https://bugs.freepascal.org/view.php?id=35251
(probably there is problem in parsing Courier New TTF font?)
I am not sure this is the reason.
I suspect that the Arial font has unicode glyphs, and courier not.
Because how is the PDF generator supposed to know that it should transcode your
text to latin 2 ?
Michael.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal