Reputation: 152657
I've to implement custom font in a website, What should be used. Client is providing custom fonts.
or is there any other better and free solution which has all these things?
Upvotes: 1
Views: 966
Reputation: 15136
If I were you id use @font-face and deliver a javascript solution (like cufón) to the older browsers.
Upvotes: 1
Reputation: 159905
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.
Upvotes: 2
Reputation: 21178
I think you'd be better served to consider using images with Alt tags selectively, and relying on good usage and tasteful standard fonts.
Upvotes: 0
Reputation: 1315
@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
Upvotes: 0