GlyphsName

RoboFont Forums Features GlyphsName

This topic contains 1 reply, has 2 voices, and was last updated by  frederik 3 years, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6301

    jb
    Member

    Hi everyone,
    I noticed when you give an Unicode to a glyph, RF offers you to rename it.
    (Example: in hebrew you end up with a name like this ‘gimel:hb’) I have 2 questions:

    1)What is this list? (it doesn’t look like postscript names)
    2)How can access to this function with a script to batch rename a whole font using unicode value of the glyphs?

    Many thanks!

    #6302

    frederik
    Keymaster

    the names comes from https://github.com/LettError/glyphNameFormatter

    it has support for 9000 unicode to glyph names
    (AGL has only 600 entries)

    you can adjust this list or use your own if you like, see the prefs

    you can access glyphNameFormatter with a script, glyph.autoUnicode is already using this for setting unicode values

    from glyphNameFormatter import GlyphName
    
    n = GlyphName(uniNumber=0x1234, scriptSeparator=":", scriptAsPrefix=True)
    print n.getName()
    
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.