timr at probo.com
Thu Oct 28 07:12:27 CEST 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)
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