Returns the boundary index of the glyph at index in face, adding the glyph to map when it is not in it yet