The FontLab export Encoding button does already what Adams script does, I have never run into the limit of 255 slots. Is that a bug in a specific build? Andrew, did you try with the FontWindow in index mode? It is also possible to copy all glyphs in the font window and paste into a text editor.
The Encoding file can be used to order all the glyphs (sort by encoding) but I believe Andrew additionally needs an export .nam file, to assign private unicodes. I commisioned a programmer to make this script, and I use it a lot, but in order to use it on another computer, something needs to be installed first that I could not find easily. Adam, maybe you have a "userpath" alternative.
#FLM: save NAM file FLS5
#by Niels for Luc(as)
from userpath import getuserpath
def unitab(f):
unis = {}
for i in range(len(f)):
g = f[i]
u = g.unicodes
for j in u:
unis[j] = g.name
return unis
def famname(f):
return f.pref_family_name
def xx_uniname(f):
vfb = f.file_name
dot = vfb.rindex('.')
return vfb[0:dot] + '.nam'
def uniname(f):
return '%sMapping\\%s.nam' % (getuserpath(), famname(f))
def saveunicodes(f):
unis = unitab(f)
fd = file(uniname(f), "w+")
fd.write('%%%%FONTLAB NAMETABLE: %s\n' % famname(f))
keys = unis.keys()
keys.sort()
for u in keys:
fd.write('0x%04X %s\n' % (u,unis[u]))
fd.close()
saveunicodes(fl.font)