On Thu, Jun 13, 2013 at 5:49 PM, Wouter van Ooijen wrote: >> I downloaded bmptk Python 2.7.5 and PIL 1.1.7 >> running it gives me this: >> >> C:\Users\Manu\Downloads\bmptk\tools>python ttf_to_cpp.py C:\Users\Manu\D= ownloads >> \bmptk\tools\arial.ttf font.h 16 "0123456789" font >> Error: source file C:\Users\Manu\Downloads\bmptk\tools\arial.ttf could >> not be opened > > Dit you install PIL? > Indeed I did: "I downloaded bmptk Python 2.7.5 and PIL 1.1.7" C:\Users\Manu\Downloads\bmptk\tools>dir C:\Python27\Scripts Volume in drive C has no label. Volume Serial Number is CCBF-B4B4 Directory of C:\Python27\Scripts 06/13/2013 05:04 PM . 06/13/2013 05:04 PM .. 05/15/2010 08:33 PM 2,366 pilconvert.py 06/13/2013 05:04 PM 2,180 pilconvert.pyc 06/13/2013 05:04 PM 2,180 pilconvert.pyo 05/15/2010 08:33 PM 15,846 pildriver.py 06/13/2013 05:04 PM 18,174 pildriver.pyc 06/13/2013 05:04 PM 18,174 pildriver.pyo 05/15/2010 08:33 PM 2,599 pilfile.py 06/13/2013 05:04 PM 2,080 pilfile.pyc 06/13/2013 05:04 PM 2,080 pilfile.pyo 05/15/2010 08:20 PM 960 pilfont.py 06/13/2013 05:04 PM 994 pilfont.pyc 06/13/2013 05:04 PM 994 pilfont.pyo 05/15/2010 08:33 PM 2,407 pilprint.py 06/13/2013 05:04 PM 2,283 pilprint.pyc 06/13/2013 05:04 PM 2,283 pilprint.pyo 15 File(s) 75,600 bytes 2 Dir(s) 86,481,604,608 bytes free C:\Users\Manu\Downloads\bmptk\tools> I guess those are the PIL scripts. > The script might hide the true error, check ~ line 112: > > try: > Font =3D ImageFont.truetype( Img_File_Name, int( Size )) > except: > Raise( "Error: source file %s could not be opened" % Img_File_Name= ) > > change this to > > Font =3D ImageFont.truetype( Img_File_Name, int( Size )) > > (in case you are not familiar with Python: there are now 3 spaces less > in front of the line! > >> I don't understand what's the Namespace it is asking for as argument. > > With the (optional) namespace argument the decratations will be > generated inside a namespace. Leave it out if you don't know or care > about namespaces. I get: C:\Users\Manu\Downloads\bmptk\tools>python ttf_to_cpp.py arial.ttf font.h 1= 6 "01 23456789" usage: fft_to_cpp "" [] C:\Users\Manu\Downloads\bmptk\tools> Sigh!, I give up. Debugging many things at the same time, is making me go n= uts. Regards, Manu --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .