Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I am trying to install a custom font on my site. The browser will load the font, but the display is not quite right. The character vertical positions/sizes seem to be off a tiny amounts. See examples here and here.

Here is my @font-face declaration:

@font-face {
    font-family: 'HelveticaNeueLT45LightRegular';
    src: url('helvetica-webfont.eot');
    src: url('helvetica-webfont.eot?#iefix') format('embedded-opentype'),
         url('helvetica-webfont.woff') format('woff'),
         url('helvetica-webfont.ttf') format('truetype'),
         url('helvetica-webfont.svg#HelveticaNeueLT45LightRegular') format('svg');
    font-weight: normal;
    font-style: normal;
}

I used the font squirrel generator to generate this (http://www.fontsquirrel.com/fontface/generator).

Thanks

share|improve this question
add comment

1 Answer

Converting fonts for Web use with automated tools often gives unpredictable results, so it's best to use the official Web font edition of whatever typeface you're interested in direct from the relevant foundry when you can. They often adapt and rehint them to look their best in the browser. Doing it this way also ensures the font is correctly licensed for Web use.

Here's the official Linotype-approved Web font edition of Helvetica Neue 45 from fonts.com.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.