Text to unicode

How can I convert a piece of text, including small caps and various sorts, into unicode?

Hi Miles, what is the real goal?

to be able to supply our standard character set as a list of code points.

Generally it is pretty easy with python, but you should be aware, that small caps (and maybe the other various sorts you might be looking for) have got no unicode, they are accessed by feature.

Paste this in Window > Macro Panel, then press the Run button in the lower right corner:

print ", ".join(sorted([g.unicode for g in Glyphs.font.glyphs if g.unicode]))

Same as above with names included:

font = Glyphs.font

for i in font.glyphs:
    if font.glyphs[i.name].unicode:
       print i.name + " - " + font.glyphs[i.name].unicode

That should look like this:

font = Glyphs.font

for i in font.glyphs:
    if i.unicode:
        print i.name + " - " + i.unicode

Now that is how a code should look like. Sexy. [wink]