I'm working on a Magento Go site at the moment. I purchased a web font from Font Spring and uploaded the 4 font files (eot, woff, ttf and svg) via the admin system using the Font Assets tool.
When I insert the fonts the following css code is added to my custom css:
../css_editor_fonts/ProximaNova-Sbold-webfont.eot
../css_editor_fonts/ProximaNova-Sbold-webfont.ttf
../css_editor_fonts/ProximaNova-Sbold-webfont.woff
../css_editor_fonts/ProximaNova-Sbold-webfont.svg
I've then applied those relative paths to the correct cross-browser compatible @font-face declaration, see below:
@font-face {
font-family: 'proxima_nova_ltsemibold';
src: url('../css_editor_fonts/ProximaNova-Sbold-webfont.eot');
src: url('../css_editor_fonts/ProximaNova-Sbold-webfont.eot?#iefix') format('embedded-opentype'),
url('../css_editor_fonts/ProximaNova-Sbold-webfont.woff') format('woff'),
url('../css_editor_fonts/ProximaNova-Sbold-webfont.ttf') format('truetype'),
url('../css_editor_fonts/ProximaNova-Sbold-webfont.svg#proxima_nova_ltsemibold') format('svg');
font-weight: normal;
font-style: normal;
}
The font is referenced in my custom css like so:
font-family: 'proxima_nova_ltsemibold';
This works in IE7/8 and latest Chrome, but not in IE 9/10 or Firefox.
I think the reason the font isn't working in IE9/10 and Firefox is due to a cross-origin request which is something I've seen discussed quite a lot, and my IE console contains this error:
@font-face failed cross-origin request. Resource access is restricted.
There is an edit that can be made to an htaccess file to enable the fonts to work in those browsers - its called Access-Control-Allow-Origin from what I've read.
Does anybody know if you can update or create an htaccess file for Magento Go?
Cheers.