[reportlab-users] TableStyle "FONTNAME"

shawn a boris317 at gmail.com
Wed Jan 16 23:14:41 EST 2008


I have the following code

s.append(TableStyle([
('GRID',(0,1),(-1,-1),1,colors.black),
('FONTNAME',(0,0),(-1,-1),'Arial')
]))

Im getting a key error

...........
return findFontAndRegister(fontName)
File "c:\python25\lib\site-packages\reportlab\pdfbase\pdfmetrics.py",
line 659, in findFontAndRegister
face = getTypeFace(fontName)
File "c:\python25\lib\site-packages\reportlab\pdfbase\pdfmetrics.py",
line 618, in getTypeFace
return _typefaces[faceName]
KeyError: 'Arial'

Is there a list of the fonts that reportlab registers for you along
with the string names?

thanks,
-Shawn


More information about the reportlab-users mailing list