Hello,
I need to move a bunch of glyphs from one Unicode block to another, i.e. change CMAP table for such amount of glyphs that makes it painful to go through each one individually and do the clicking with mouse. Is there way to edit the table values directly, or export & import it?
Thanks,
Jan
Character to glyph mapping bulk edit
-
- Top Typographer
- Posts: 9873
- Joined: Tue Oct 29, 2002 5:28 am
- Location: Seven Kings, London UK
- Contact:
Re: Character to glyph mapping bulk edit
- Sort the font in Unicode order from the Tools menu
- Insert Characters, and add empty glyphs with the new Unicode mappings that you need
- Copy the glyphs that you need to move
- Select the new empty glyphs
- Edit menu paste special, and overwrite the existing mappings.
- Delete the old glyphs that are now unmapped
-
- Posts: 6
- Joined: Fri Apr 08, 2011 12:43 pm
Re: Character to glyph mapping bulk edit
That creates glyphs with new IDs. I want to keep the same glyph IDs so that substitutions and everything else works as is.
-
- Top Typographer
- Posts: 9873
- Joined: Tue Oct 29, 2002 5:28 am
- Location: Seven Kings, London UK
- Contact:
Re: Character to glyph mapping bulk edit
OpenType Features don't use Glyph IDs, they use Glyph names.
If you really need to keep the glyph IDs, then copy the code points from the newly added glyphs over the existing glyph outlines, using paste special, but only the code points.
If you really need to keep the glyph IDs, then copy the code points from the newly added glyphs over the existing glyph outlines, using paste special, but only the code points.
-
- Moderator
- Posts: 11108
- Joined: Fri Oct 04, 2002 12:41 am
- Location: Bilthoven, The Netherlands
- Contact:
Re: Character to glyph mapping bulk edit
In general the actual glyphs are used, but when compiling an OpenType layout feature script, the glyph names are used to find the glyphs.
To keep the same glyphs, this might slightly different approach should work:
To keep the same glyphs, this might slightly different approach should work:
- Sort the font in Unicode order from the Tools menu
- Insert Characters, and add the selection of codepoints
- Copy these new characters to the clipboard
- Select the original glyphs
- Edit menu paste special, to only copy the codepoints. Ensure you have selected "overrule same codepoints".
- Delete the newly added characters that are now unmapped