|
From: Rich S. <rsh...@ap...> - 2011-10-17 18:19:16
|
On Mon, 17 Oct 2011, Benjamin Root wrote:
> In the afm.py file, a before line 167, can you print the value of the
> "line" variable and tell us what it is?
Ben,
Here are lines 158-167:
while 1:
line = fh.readline()
if not line: break
line = line.rstrip()
if line.startswith('EndCharMetrics'): return ascii_d, name_d
vals = line.split(';')[:4]
if len(vals) !=4 : raise RuntimeError('Bad char metrics line: %s'
num = _to_int(vals[0].split()[1])
wx = _to_float(vals[1].split()[1])
name = vals[2].split()[1]
Thanks,
Rich
|