ReportLab newbie

Lee Harr missive at frontiernet.net
Wed Oct 27 17:24:46 EDT 2004


On 2004-10-27, 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)
>
> But the register complains with this exception:
>
> ValueError: _tt2ps_map[('arial', 1, 0)]==Arial-Bold already, not Arial
>
> what does it mean?
>


Sorry, not sure, but reportlab has an active and quite
supportive mailing list if no one here has an answer:

http://www.reportlab.org/
http://two.pairlist.net/mailman/listinfo/reportlab-users





More information about the Python-list mailing list