ThemeForest

Cufons and line-height

47 posts
  • Has been a member for 2-3 years
  • Bought between 1 and 9 items
virgild says

Has anyone found a workaround for this? Line-height doesn’t seem to register with cufons..

Posted 2 years ago Permalink
1324 posts
  • Has been a member for 2-3 years
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Exclusive Author
  • Sold between 250 000 and 1 000 000 dollars
  • Elite Author
  • Bought between 10 and 49 items
  • Referred between 10 and 49 users
freshface says
You need to use strict XHTML and it will work:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Cheers! :) fresh
Posted 2 years ago Permalink
862 posts
  • Has been a member for 2-3 years
  • Helped protect Envato Marketplaces against copyright violations
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Contributed a Tutorial to a Tuts+ Site
  • Author had a Free File of the Month
  • Exclusive Author
  • Sold between 50 000 and 100 000 dollars
  • Elite Author
  • Bought between 10 and 49 items
  • France
  • Referred between 10 and 49 users
Pixelworkshop says

In the “known issues that will not be fixed”, it’s written “All browsers: line-height may not behave as expected under non-strict doctypes.”

Maybe you’ve already read this and also this but you can have a look here

Good luck !

Posted 2 years ago Permalink
47 posts
  • Has been a member for 2-3 years
  • Bought between 1 and 9 items
virgild says

Thanks for the links! I tried the solutions and strict XHTML but I still can’t get it to work.. Maybe it has to do with the font-size set to 100px?

I suspect

<?php wp_head(); ?>

might be the reason?

I’m not sure why tho…

Posted 2 years ago Permalink
1657 posts
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Bought between 10 and 49 items
  • Europe
  • Referred between 100 and 199 users
digitalimpact says
Thanks for the links! I tried the solutions and strict XHTML but I still can’t get it to work.. Maybe it has to do with the font-size set to 100px?

I suspect

&lt;?php wp_head(); ?&gt;

might be the reason?

I’m not sure why tho…
<?php wp_head(); ?> is just a hook so plugins and other dependables know where to load in your document header.

Now back to Cufon: said it a gazillion times before…. @font-face won’t give you headaches ;) and it won’t bloat your code with one canvas element per word :| and it’s supported by all(most all) browsers, starting with IE4 …

Posted 2 years ago Permalink
47 posts
  • Has been a member for 2-3 years
  • Bought between 1 and 9 items
virgild says

Thanks for the info! I didn’t know about @font-face. I cant find much info about it, not sure how exactly it renders fonts but I’ll give it a go :)

Posted 2 years ago Permalink
1657 posts
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Bought between 10 and 49 items
  • Europe
  • Referred between 100 and 199 users
47 posts
  • Has been a member for 2-3 years
  • Bought between 1 and 9 items
virgild says

Thanks! :)

I might be wrong but It appears that Explorer doesn’t support @font-face?

I was looking at a sample page using @font-face and explorer displays default font.

Posted 2 years ago Permalink
47 posts
  • Has been a member for 2-3 years
  • Bought between 1 and 9 items
1657 posts
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Bought between 10 and 49 items
  • Europe
  • Referred between 100 and 199 users
digitalimpact says
Thanks! :)

I might be wrong but It appears that Explorer doesn’t support @font-face?

I was looking at a sample page using @font-face and explorer displays default font.

IE supports @font-face from version 4 as far as I remember – you just need a different format for older IEs.

For example, I use IE8 and have used a TTF font with no problems I think you need EOT or something like that for older IEs – google is your friend :)

Posted 2 years ago Permalink
by
by
by
by
by