Custom Text Selection Quads to Rect

Please see this forum post on how to convert Quads (OBB) to Rect (AABB)