Example #1
0
// endOfChar takes a position of a character and returns the position
// of its end.
func (l *CodeEditorLine) endOfChar(position math.Point) math.Point {
	return position.AddX(l.ce.Font().GlyphMaxSize().W / 2)
}