[reportlab-users] RenderPMError when using TTF in bitmaps
Robin Becker
robin at reportlab.com
Mon Jan 15 04:26:09 EST 2018
Hi Dinu,
I used the code2000 from from here https://fonts2u.com/code2000.font. I
downloaded and unzipped and then ran this
################################################
from reportlab.graphics.shapes import String, Drawing
from reportlab.pdfbase.ttfonts import TTFont
from reportlab.pdfbase.pdfmetrics import registerFont
registerFont(TTFont('Code2000','Code2000/CODE2000.TTF'))
d=Drawing(200,20)
d.add(String(10,10,'Hello Cruel World!',fontName='Code2000',fontSize=12))
d.save(formats=['png'])
################################################
and it appears to work fine. I checksummed the font as
$ md5sum Code2000/CODE2000.TTF
052eaff1c80993c8f7dca4ff94bb83ca Code2000/CODE2000.TTF
On 15 January 2018 at 08:36, Andy Robinson <andy at reportlab.com> wrote:
> On 15 January 2018 at 08:30, Robin Becker <robin at reportlab.com> wrote:
> > Hi Dinu, I believe this is just a generic response to a font loading
> error.
>
> We have had this response for about 16 years. Perhaps we could check
> if we have the T1 files (or indeed if one was requested) before saying
> so, and just say "Font Loading Error" if we don't know.
>
> Idea: we could put a font-loading test widget on our web site which
> told people more and let them upload and print a glyph sheet...
>
> - Andy
> _______________________________________________
> reportlab-users mailing list
> reportlab-users at lists2.reportlab.com
> https://pairlist2.pair.net/mailman/listinfo/reportlab-users
>
--
Robin Becker
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist2.pair.net/pipermail/reportlab-users/attachments/20180115/8825fdaa/attachment.html>
More information about the reportlab-users
mailing list