1

I've to implement custom font in a website, What should be used. Client is providing custom fonts.

  • All browser support (Including IE6 and in all A Grade Browsers)
  • text Selectable
  • Selection visible
  • Accessible with screen reader
  • Successfully degradable if JS is disabled
  • Easy to implement and manage in less time
  • Mobile browser compatible
  • less performance issue
  • No purchase needed
  • Can be used as a link also
  • Font should look smooth like in Photoshop

or is there any other better and free solution which has all these things?

Jitendra Vyas
  • 148,487
  • 229
  • 573
  • 852
  • Although licensing issue comes with both I know in both method we will share font publically, As a font's sIFR SWF if we use sIFR and TTF/OTF/EOT if we use @font-face. – Jitendra Vyas Mar 02 '10 at 11:29

4 Answers4

2

Why not just use the bulletproof @font-face syntax as described by Paul Irish and back it up with alternate styles and javascript in conditional IE tags?

IE:

<style type="text/css">
...
@font-face {
  font-family: 'Graublau Web';
  src: url('GraublauWeb.eot');
  src: local('Graublau Web Regular'), local('Graublau Web'), 
         url('GraublauWeb.otf') format('opentype');
}
...
</style>
<!--[if lte IE 6]>
<link type="text/css" rel="stylesheet" href="ie_6styles.css" />
<script type="text/javascript" src="Cufon.js"></script>
<script type="text/javascript">
   Cufon.init();
</script>
<![endif]-->

The only part of your requirements that is not met by this setup right off the bat is mobile compatibility across the board. Once you determine what platforms you want to support, this solution should be extensible enough to allow support for all of them as well.

Sean Vieira
  • 155,703
  • 32
  • 311
  • 293
  • There is currently no solution that meets all your needs. Everything is a trade-off. But if you start with the the proper CSS (@font-face) and back it up as needed, like Sean suggests, you are on the right track. – Miriam Suzanne Mar 03 '10 at 21:42
1

If I were you id use @font-face and deliver a javascript solution (like cufón) to the older browsers.

  1. use fontsquirrel
  2. and a javascript filter
Knu
  • 14,806
  • 5
  • 56
  • 89
0

@font-face does not support IE6 as good as you would want it to. So if that is your requirement, don't use it.

Browser consistency is also a big problem with @font-face

douwe
  • 1,305
  • 10
  • 12
0

I think you'd be better served to consider using images with Alt tags selectively, and relying on good usage and tasteful standard fonts.

Keith Adler
  • 20,880
  • 28
  • 119
  • 189