CFFCharset.Entry glyphEntry = glyphEntries.get(i - 1);
gids[i - 1] = glyphEntry.getSID();
font.getCharStringsDict().put(glyphEntry.getName(), charStringsIndex.getBytes(i));
}
DictData.Entry encodingEntry = topDict.getEntry("Encoding");
CFFEncoding encoding;
int encodingId = encodingEntry != null ? encodingEntry.getNumber(0).intValue() : 0;
if (encodingId == 0 || rosEntry != null) // --- ROS uses StandardEncoding
{
encoding = CFFStandardEncoding.getInstance();
}