Referencing the glyph index in the Font Asset Creator Character Sequence window wonât work as these values represent the Unicode code point for those characters. The glyph index is a reference to the glyph index in an array of glyphs contained in the font file.
Here is an example using FontCreator from High-Logic for the font Roboto - Bold
In the image below, you can the Unicode code point for the character âAâ is 0x41.
However, the index of this glyph is glyph index = 37 as seen below.
and here as seen in the font asset inspector of this font asset.
Note that the Unicode code point for the character âAâ will never change as this its designed address / code point in the Unicode Standards. However, the glyph index for this character can and will most likely be different from font to font. This glyph index simply represent the index of the glyph in an array of glyphs. As such, depending on the font file and glyphs present, the index of any given glyph will vary.
For example, the glyph index of the character âAâ in the LiberationSans - Regular font file is 36 as seen below.
and in the NotoSans-Bold font file, its index 17.
As a reference, a Character is mapped to a specific Unicode Code Point where for instance the letter âAâ is assigned the Unicode 0x41 or decimal value of 65. A character references a glyph index where such glyph is the visual representation of this character.
Note that it is possible for multiple characters to reference the same glyph index. For instance, the Latin letter âTâ 0x54, the Greek letter âTâ 0x3A4 and the Cyrillic letter âTâ 0x422.
Back on the topic of Ligatures, most of the time, the resulting glyph that is used in a ligature is not assigned to a Unicode Code Point. As such, these glyphs can only be referenced via their glyph index.