I'm using following code to display a custom font in my ASP.NET web site:
<style type="text/css">
@font-face {
font-family: 'B Mitra';
src: url('BMitra.ttf') format('truetype'); /* IE9 Compat Modes */
src: url('BMitra.ttf?#iefix') format('truetype'), /* IE6-IE8 */
url('BMitra.ttf') format('truetype'), /* Modern Browsers */
url('BMitra.ttf') format('truetype'); /* Safari, Android, iOS */
}
</style>
</head>
<body style="font-family:B Mitra;" onload="pageLoad()">
it works fine in FireFox, but IE and chrome don't display my custom font (this custom font is located in my server, in the folder which contains my ASPX file, font is downloaded on systems that don't have it in firefox, but I think IE and chrome cannot download it and another existing font is used). what is going wrong here?