Fix font rendering in safari and mobile layout