2067 posts
  • Collector Level 3
  • 5 Years of Membership
  • Exclusive Author
  • United States
Landonw
says

You see, I’m making my font size larger with JavaScript because of the CUFON font looking a whole lot smaller than normal text. Now, the problem is if someone has javascript enabled however their browser does not support cufon, it will give them huge text. So is there something like

Cufon.supported()

or no?

116 posts
  • 5 Years of Membership
  • Collector Level 1
  • Exclusive Author
dejans7
says

This might be little off-topic, but do you really need to use cufon? Why not @font-face, it might solve your problems?

2067 posts
  • Collector Level 3
  • 5 Years of Membership
  • Exclusive Author
  • United States
Landonw
says

There’s a difference. Font-face only renders as I want it to on a Mac, Cufon renders how I want it to on all systems.

2067 posts
  • Collector Level 3
  • 5 Years of Membership
  • Exclusive Author
  • United States
Landonw
says

Figured it out, close and delete.

971 posts
  • 6 Years of Membership
  • Author Level 5
  • Collector Level 4
  • Exclusive Author
EireStudio
says

Figured it out, close and delete.

Why not post for someone else who comes to this thread for the answer?

2067 posts
  • Collector Level 3
  • 5 Years of Membership
  • Exclusive Author
  • United States
Landonw
says

Okay,

you can do one of two things. Either assign your CSS like this:

Cufon.register('h1, h2, h3, h4, h5, h6', {'STYLE', 'VALUE'});

or alternatively add this to your CSS file:

.cufon-ready h1 {
font-size:48px;
}
by
by
by
by
by
by