adapts to different font selection