Today I am in discussion with one of the designer we have and we have found one strange thing about Cufon fonts. If you are not sure what cufon is, then I would recommended you to have read this article about cufon fonts.
Problem is with line-height CSS attribute. Line height works perfectly but not when we apply Cufon fonts to that element.
For first few mins we thought it might a problem with some other CSS property. But it was not like that. In just 4 minutes I have found that cufon has known but about line-height (in all browsers) and that no suppose to get fixed.
Actual problem is with non-strict doctypes pages. So if you have a strict doctype defined then you might have not face the same problem but it will create a problem for all non-strict DocTypes.
So if you have this problem then you must have DocType like below:
So as a solution you need to change that DocType to below one:
Avinash Zala currently working at a leading web development company as a Sr. PHP Web Developer. He is the founder of the Xpert Developer. He has completed B.E. in Information Technology. Born and brought up in Ahmedabad. He loves to code and coding is all about passion for him. Follow him on twitter at Avinash Zala & Xpert Developer.
View all posts by: Avinash