[reportlab-users] Embedding TrueType fonts

Andy Robinson reportlab-users@reportlab.com
Mon, 26 May 2003 11:09:50 +0100


> It looks like Microsoft allows this for some of its fonts
> (Installable Embedding Allowed) but I don't know how to change a
> TTF font into an AFM/PFB pair that can be embedded via ReportLab?
>
> How to I get from .TTF -> AFM/PFB ?
>
> Thanks!
They are different; AFM/PFB is Type 1, and you need a pecial
tool like Pyrus FontLab to convert them.  However, you CAN embed TrueType
fonts using our library.  Look at test_pdfbase_ttfonts.py in reportlab/test/

- Andy