Fix usage of invalid image when restoring the fonts.

The restoration of the true type fonts used to request the size of
the image, which was invalidated by a previous call to
invalidate(). The size is now cached and used when needed.