Alex Rivera | Logout

Webfont (@font-face) line-height issue

Asked 2012-10-17T07:58:51.733
16

I often embed webfont (@font-face) in sites that I develop and I have never encountered a major problem until today.

In fact, I feel there is a big issue with the line-height, I'm not extremely good at English so I'll try to illustrate it with pictures. I already contact the support from fontshop.com (where the font was bought) but they do not seem to understand / solve the problem.

What we had before with standard desktop font (= rendering is good for us):

What we had with the font-face (no change in CSS stylesheet):

Here is the CSS:

#content h1 {
    background:#000000;
    color:#FFFFFF;
    font-family:"DINPro-Bold","Helvetica Neue",Arial,Helvetica,Geneva,sans-serif;
    font-size:35px;
    line-height:30px;
    padding:10px;
    text-transform:uppercase;
}
Edit
Report

1 Answer

-2

Line height according to wikipedia

In typography, leading (rhymes with heading) refers to the amount of added vertical spacing between lines of type.

This can be achieved like this...

.class{ line-height: 1em; }

But if you are referring to the height of the letters then this is not something that can be adjusted. It is part of the font you have chosen to use.

answered 2012-10-17T08:28:43.513

Your Answer