scott1028 / pyfpdf

Automatically exported from code.google.com/p/pyfpdf
GNU Lesser General Public License v3.0
0 stars 0 forks source link

add_font is broken in 1.54b #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

I convert ttf font for cp1250 codepage with makefont.py tool from pyfpdf 
package and when I try to add this font to my document, I got error:

pdf.add_font('CourierNewPSMT','','cour.py')

  File "/work/pyfpdf/pyfpdf-1.54b/fpdf.py", line 445, in add_font
    self.diffs[d]=diff
IndexError: list assignment index out of range

I made quick fix to solve problem, I will put fixed version of fpdf.py in 
attachment.

Original issue reported on code.google.com by smith...@gmail.com on 2 Oct 2010 at 1:20

Attachments:

GoogleCodeExporter commented 9 years ago
Patched in revision 9408595dc7, please test it.

Original comment by reingart@gmail.com on 13 Oct 2010 at 6:00