Line height differs from online TypeKit font vs. local embedded CSS font
- January 21, 2021
- 4 replies
- 1794 views
We are developing a Veeva presentation (think HTML-based iPad app) and our designers used a TypeKit font. Unfortunately TypeKit requires the user be connected to the internet and we can't ensure that so we needed to embed the fonts directly in the CSS. So we licensed the font in question (Avenir), got the package, and inserted it into the HTML. What we found was that the line-height differs substantially between the two fonts causing all the elements to shift up.
This is literaly the only difference. One links to TypeKit online. The other uses local embedded fonts. I have attached an animated GIF showing the difference The local fonts appear much higher than the embedded fonts. Unfortunately this is a HUGE presentation and adjusting the line-height of each element manually will take more time than we have to finish this project.
Has anyone run into this problem before? Any idea what might be causing it or how to fix it?
