error while reading bdf font file
<p>i tried converting a ttf font into an equivalent bdf font using python script...
but when i try to view d same in a viewer it shows invalid file.</p>

<p>the following file is easily readable but</p>

<p>tst.bdf:</p>

<pre><code>STARTFONT 2.1
FONT newfont
SIZE 16 72 72
FONTBOUNDINGBOX 32 32 0 -2
STARTPROPERTIES 2
FONT_ASCENT 14
FONT_DESCENT 2
ENDPROPERTIES
CHARS 1
STARTCHAR A
ENCODING 65
SWIDTH 500 0
DWIDTH 8 0
BBX 8 16 0 -2
BITMAP 
00
00
00
00
18
24
24
42
42
7E
42
42
42
42
00
00
ENDCHAR
ENDFONT


similar file (output of the font conversion script) :
font.bdf
STARTFONT 2.1
COMMENT equivalent bdf font file
FONT  SIZE 14 1024 768
FONTBOUNDINGBOX 420 183 -34 -40
STARTPROPERTIES  2
FONT_ASCENT  117
FONT_DESCENT  -32
ENDPROPERTIES
CHARS  252
STARTCHAR  .notdef
ENCODING  -1
SWIDTH  682  0
DWIDTH  66  0
BBX  53  99  0  0
BITMAP  
20000000000001
00000000000000
00000000000000
00000000000000
00800000000080
00000000000000
00000000000000
00000000000000
00000000000000
00000000000000
00000000000000
00000000000000
00000000000000
00000000000000
00000000000000
00000000000000
00000000000000
00000000000000
00000000000000
00000000000000
00000000000000
00000000000000
00000000000000
00000000000000
00000000000000
00000000000000
00000000000000
00000000000000
00000000000000
00000000000000
00000000000000
00000000000000
00000000000000
00000000000000
00000000000000
00000000000000
00000000000000
00000000000000
0000000000000......and so on
</code></pre>

<p>it shows invalid...
anyone with some suggestion</p>
