Guys, if I measure the width and height of each line in a gap buffer (lines are delineated by \n), what would be the formula for finding the X and Y coordinate of any given character in that gap buffer?
Something like so:
/// <summary>
/// Returns the position of any given character in m_Text.
/// </summary>
/// <param name="CharacterIndex">The index of the character.</param>
/// <returns>THe position of the character indexed by <paramref name="CharacterIndex"/></returns>
private Vector2 CharaterPosition(int CharacterIndex)
{
}