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 » Mon Oct 12, 2015 7:35 pm

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: 8407
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 » Mon Oct 12, 2015 8:10 pm

  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 1482 times
My FontsReviews: MainTypeFont CreatorHelpFC12 Pro + MT9.0 @ Win10 1903 build 18362.418

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 » Tue Oct 13, 2015 6:36 pm

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: 8407
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 » Tue Oct 13, 2015 6:59 pm

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 CreatorHelpFC12 Pro + MT9.0 @ Win10 1903 build 18362.418

Erwin Denissen
Moderator
Moderator
Posts: 8319
Joined: Fri Oct 04, 2002 12:41 am
Location: Bilthoven, The Netherlands
Contact:

Re: Character to glyph mapping bulk edit

Post by Erwin Denissen » Sat Oct 17, 2015 9:45 pm

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