Character to glyph mapping bulk edit

Get help with FontCreator here. Please do not post feature requests or bug reports here.
Post Reply
Jan Kučera
Posts: 6
Joined: Fri Apr 08, 2011 12:43 pm

Character to glyph mapping bulk edit

Post by Jan Kučera »

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
Bhikkhu Pesala
Top Typographer
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

Post by Bhikkhu Pesala »

  1. Sort the font in Unicode order from the Tools menu
  2. Insert Characters, and add empty glyphs with the new Unicode mappings that you need
  3. Copy the glyphs that you need to move
  4. Select the new empty glyphs
  5. Edit menu paste special, and overwrite the existing mappings.
  6. Delete the old glyphs that are now unmapped
Paste Special.png
Paste Special.png (26.16 KiB) Viewed 3137 times
My FontsReviews: MainTypeFont CreatorHelpFC15 + MT12.0 @ Win 10 64-bit build 19045.2486
Jan Kučera
Posts: 6
Joined: Fri Apr 08, 2011 12:43 pm

Re: Character to glyph mapping bulk edit

Post by Jan Kučera »

That creates glyphs with new IDs. I want to keep the same glyph IDs so that substitutions and everything else works as is.
Bhikkhu Pesala
Top Typographer
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

Post by Bhikkhu Pesala »

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.
My FontsReviews: MainTypeFont CreatorHelpFC15 + MT12.0 @ Win 10 64-bit build 19045.2486
Erwin Denissen
Moderator
Moderator
Posts: 11108
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: Character to glyph mapping bulk edit

Post by Erwin Denissen »

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:
  1. Sort the font in Unicode order from the Tools menu
  2. Insert Characters, and add the selection of codepoints
  3. Copy these new characters to the clipboard
  4. Select the original glyphs
  5. Edit menu paste special, to only copy the codepoints. Ensure you have selected "overrule same codepoints".
  6. Delete the newly added characters that are now unmapped
Erwin Denissen
High-Logic
Proven Font Technology
Post Reply