CursorPair: Set font before calling compute_text_size