Mobile app version of vmapp.org
Login or Join
XinRu324

: Validation issues – duplicate unicode code points? I am trying to generate a self-created True Type font. When validating, I’m getting a bunch of characters with: There is another glyph

@XinRu324

Posted in: #FontDesign #FontForge #Unicode

I am trying to generate a self-created True Type font.

When validating, I’m getting a bunch of characters with:


There is another glyph in the font with this unicode code point.


This happens after hinting, removing overlaps, correcting directions... It’s the only thing that comes up when validating the font, everything else seems to be fine. Same when I directly generate the TTF.

Unfortunately the validation messages don’t have any details to them other than the name of character with the respective issue as quoted. By clicking on that list item it opens the respective problem character (for example LATIN CAPITAL LETTER E) in order to solve the issue but I don't see any reference as to where the other duplicate character sits and I don’t understand what exactly I’m supposed to do. Am I supposed to just erase that character and hope I killed the right one of the two?

I tried to detach the respective characters. Tried to restart XQuartz and FontForge. But problems/messages persist.

I created the font from scratch. I use my own all Western European Character set (incl. all accents and some ligatures).

XQuartz 2.7.11 (xorg-server 1.18.4)
FontForge 18:35 PDT, 2 April 2016
Mac mini (Late 2014), 3GHz i7, 16GB memo
macOS Sierra 10.12.2

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @XinRu324

1 Comments

Sorted by latest first Latest Oldest Best

 

@Turnbaugh909

I managed to create a FontForge font that exhibits the same error message. However, I had to manipulate the file manually (i.e., with a text editor), as FontForge didn’t allow me to make this mistake. Therefore it is not extremely unlikely that whatever caused this error for you also caused other problems.

This error indicates that you assigned two glyphs to the same Unicode character (or “code point“), which is very problematic, because the font can only guess which glyph to use to render this Unicode character.

Anyway, here is what works in this constructed case:


Open Element → Validation → Validate.
This should (amongst other things) show you all glyphs affected by this:


Unless your font is a real mess, you should only have two or at least a small number of affected glyphs.
Open each glyph by double-clicking on the error message.
In the glyph window, go to Element → Glyph Info ↦ Unicode. There should be at least one glyph, whose Unicode Value and Char do not match the glyph. In my example, it looks like this for the culprit:


If it works, use Set From Name. Otherwise assign enter the proper Unicode Value and choose Set From Value.


Note that the error may persist in the validation window until you restart FontForge.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme