ReportLab newbie

Tim Roberts timr at
Thu Oct 28 07:12:27 CEST 2004

Damjan <gdamjan at> 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)

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
  Providenza & Boekelheide, Inc.

More information about the Python-list mailing list