Results 1 to 2 of 2

Thread: webfonts and ie9

  1. #1
    Join Date
    Jan 2007
    Location
    Davenport, Iowa
    Posts
    2,385
    Thanks
    100
    Thanked 113 Times in 111 Posts

    Default webfonts and ie9

    Hi,

    The following allows everything but ie9 to load the tt98321 webfont.
    Code:
    @font-face{font-family: 'tt9832l';
    src: url('tt9832l.eot');
    src: local('tt9832l'), url('tt98321.woff') format('woff'),
    url('tt9832l.ttf') format('truetype'),
    url('tt9832l.svg') format('svg');}
    The following allows the webfont to load in ie8, ie9 and Chrome, but not Firefox or Opera. Any idea on how to tweak it so that the webfont loads in all major browsers?
    Code:
    @font-face {
    	font-family: 'tt9832l';
    	src: url('tt9832l.eot?') format('embedded-opentype');
    	}
    	
    @font-face {
    	font-family: 'tt9832l';
    	     url(data:font/truetype;charset=utf-8;base64,BASE64_ENCODED_DATA_HERE)  format('truetype'),
    	     url(data:font/woff;charset=utf-8;base64,BASE64_ENCODED_DATA_HERE)  format('woff'),
    	     url('tt9832l.svg#svgFontName') format('svg');
    	}
    Last edited by james438; 09-07-2011 at 06:44 AM.
    To choose the lesser of two evils is still to choose evil. My personal site

  2. #2
    Join Date
    Jan 2007
    Location
    Davenport, Iowa
    Posts
    2,385
    Thanks
    100
    Thanked 113 Times in 111 Posts

    Default

    Found it.

    I replaced the second code I listed above with
    Code:
    </style>
    
    <!--[if IE]>
    <style type="text/css">
    @font-face {
    	font-family: 'tt9832l';
    	src: url('tt9832l.eot?') format('embedded-opentype');
    	}
    	
    @font-face {
    	font-family: 'tt9832l';
    	     url(data:font/truetype;charset=utf-8;base64,BASE64_ENCODED_DATA_HERE)  format('truetype'),
    	     url(data:font/woff;charset=utf-8;base64,BASE64_ENCODED_DATA_HERE)  format('woff'),
    	     url('tt9832l.svg#svgFontName') format('svg');
    	}
    </style>
    <![endif]-->
    <style type="text/css">
    I wasn't aware of the browser specific commands.
    To choose the lesser of two evils is still to choose evil. My personal site

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •