private int getCharacterClosestTo(Vector2 pos) { pos = textFlow.ToLocalSpace(pos * DrawInfo.Matrix); int i = 0; foreach (Drawable d in textFlow.Children) { if (d.DrawPosition.X + d.DrawSize.X / 2 > pos.X) { break; } i++; } return(i); }