Bug 662787 - Segfaults when trying to set a large text size

If a font size is too big for cairo or pango to deal with, nicely back
up from rendering and alert the user via an error dialog.
(cherry picked from commit 2aabbbd9c733a9078d08b15bedef6e9adae1031f)