AbstractFont : update toUnicode and toCode methods