Wrong bbox or descent with @font-face and opentype font
Posted
by
wowpatrick
on Stack Overflow
See other posts from Stack Overflow
or by wowpatrick
Published on 2011-01-03T18:50:55Z
Indexed on
2011/01/03
18:54 UTC
Read the original article
Hit count: 322
Hey all,
I embedded a opentype font with @font-face. Works fine, but the bbox or descent (or baseline/descent line?) is wrong on certain browsers/OSs. The problem is e.g. on a Mac the bbox is not right, that means to center the text in it's bbox I have to set a padding to the paragraph. I guess the font was created on Windows and was not tested on Linux and OS X, and the font rendering engines in these OSs work diffrently. Any idea how to solve withs problem? Screenshot of the font in Windows, Linux and Mac. Form left to right: Ubuntu Firefox 3, Chromium, Windows XP Firefox 3/Chrome, Mac OS X Safari 5/Firefox 4 Beta 8. Screenshot of the fonts
© Stack Overflow or respective owner