Can I use custom TrueType fonts in the reportlab.graphics.Drawing file?

It seems pretty simple to embed the TrueType font in a PDF using reportlab.pdfgen.canvas.Canvas . However, I use the reportlab.graphics.Drawing class reportlab.graphics.Drawing , as this gives me the ability to save both PNG and PDF images.

I cannot find mention of how to use custom TrueType fonts with the Drawing class. It can be done?

+4
source share

Source: https://habr.com/ru/post/1501641/


All Articles