ReportLab newbie
Tim Roberts
timr at probo.com
Thu Oct 28 01:12:27 EDT 2004
Damjan <gdamjan at gmail.com> wrote:
>I'm trying this script with reportlab:
>
>from reportlab.pdfbase import pdfmetrics
>from reportlab.pdfbase.ttfonts import TTFont
>fontname = 'Arial-Bold'
>my_TTF = '/opt/Fonts/arial.ttf'
>font = TTFont(fontname, my_TTF)
>pdfmetrics.registerFont(font)
Do you realize that arial.ttf is normal Arial, and not bold? Arial bold
lives in arialbd.ttf.
Reportlab automatically registers the Arial family. You shouldn't need to
register it yourself.
--
- Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the Python-list
mailing list