Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Copy/Paste Glyph/Character from one font file to another

I have two different font files FontFile1.otf and FontFile2.otf. I want to copy Unicode character at position 1759 from FontFile1.otf to FontFile2.otf. How can i do that?

I tried to do it using FontForge and Fontographer but the paste doesn't seem to work (paste is disabled, and the menu item doesn't enable). Are there any specific instructions for copy/paste? Is there any other tool i can use?

like image 672
Mustafa Avatar asked Dec 21 '11 04:12

Mustafa


2 Answers

Open both fonts in the same FontForge instance then you'll be able to copy glyphs from one to the other.

like image 159
rustyx Avatar answered Nov 09 '22 13:11

rustyx


Well, you may try to write a script for FontForge. If codepoint 1759 (by the way hexadecimal or decimal?) is not present in FontFile2.otf you may do (untested):

Open("FontFile1.otf");
Select(0u1759);
Copy();
Open("FontFile2.otf");
Select(0u1759);
Paste();
Generate("FontFile3.otf", "", 4);

You can also use the MergeFonts() function to merge all font glyphs, copying all non-existing glyphs from A to B.

like image 36
shapecatcher Avatar answered Nov 09 '22 13:11

shapecatcher