Skip to main content
Inspiring
September 4, 2020
Question

Indesign scripting - Get character name

  • September 4, 2020
  • 1 reply
  • 258 views

Hi. I'm using the grep_mapper script (from Peter Kahrel) to create a font unicode map of the private use area.

But I would also like to get the name of each glyph.

Is there a way to script it :

• for this character > get glyph name from font used.

Thanks.

 
This topic has been closed for replies.

1 reply

Peter Kahrel
Community Expert
Community Expert
September 4, 2020

No, that's not possible. You can get the character's content (its representation) and its unicode value, but the name isn't available. (Only for special characters such as en rule and the like can you get the name). You could repurpose the unicode tables from the Unicode website and use them to look up character names, using a character's Unicode point as a key. That's all.

Peter

jjrgerAuthor
Inspiring
September 4, 2020

OK.

I have my own character names in the font.

I use Indyfont, so I could write a jsx to get an array of unicodes and names.

It could be a good feature for Indyfont to export as a unicode map/table like grepmapper.jsx.

Thanks