Prevent crash when no font is set.