Mobile app version of vmapp.org
Login or Join
Michele215

: How do I convert leading and kerning expressed to CSS styles I have been given a design / style guide for a website that has the fonts expressed in point (pt) measurements, and additional

@Michele215

Posted in: #Css #Fonts #Kerning

I have been given a design / style guide for a website that has the fonts expressed in point (pt) measurements, and additional leading and kerning adjustments - e.g. 40pt font, 60pt leading, -30pt kerning.

I would like to use em, rather than pt or px in the CSS, and am assuming (using reset) a base font size of 16px. The core font size conversation I can do, but I don't know what to do with the leading and kerning?

(PS I do know that this means the font will render differently on different devices / browsers, I just need somewhere to start.)

[UPDATE: I have created a google doc with the conversion of pt to px / em]

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Michele215

1 Comments

Sorted by latest first Latest Oldest Best

 

@Caterina889

Kerning equates to .class { letter-spacing: Xem; }

Leading equates to .class { line-height: Xem; }

use the exact same conversion you are using for the font size to get the correct em values. 1pt = 1px

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme