Cache font-style and text-decoration to speed up can_merge_with_box()