bravo14 Posted January 20, 2014 Share Posted January 20, 2014 Hi I have a font that I need to download via CSS it works fine in Safari, but in the Console in Firefox I get the following error downloadable font: download failed (font-family: "Dancing" style:normal weight:normal stretch:normal src index:0): bad URI or cross-site access not allowed source: http://www.remyweavesandbraids.com/files/fonts/DancingScript-Regular.ttf The css used is as follows @font-face { font-family: Dancing; src: url(../files/fonts/DancingScript-Regular.eot); /* EOT file for IE */ } @font-face { font-family: Dancing; src: url(../files/fonts/DancingScript-Regular.ttf); /* TTF file for CSS3 browsers */ } What do I need to do in order for Firefox to display it properly Quote Link to comment https://forums.phpfreaks.com/topic/285536-font-download-not-working-in-firefox/ Share on other sites More sharing options...
dalecosp Posted January 20, 2014 Share Posted January 20, 2014 (edited) Have you tried the fully-qualified path to the resource? src: url(http://www.mysite.com/files/fonts/DancingScript-Regular.ttf); /* TTF file for CSS3 browsers */ If that's not it, you probably needs to investigate CORS. Edited January 20, 2014 by dalecosp Quote Link to comment https://forums.phpfreaks.com/topic/285536-font-download-not-working-in-firefox/#findComment-1465921 Share on other sites More sharing options...
bravo14 Posted January 20, 2014 Author Share Posted January 20, 2014 Can I do this in the css file or does it have to be done outside of the css in the head tag of the HTML? Quote Link to comment https://forums.phpfreaks.com/topic/285536-font-download-not-working-in-firefox/#findComment-1465932 Share on other sites More sharing options...
cyberRobot Posted January 22, 2014 Share Posted January 22, 2014 I'm not sure if this is the same font, but have you considered using Google Fonts: http://www.google.com/fonts#UsePlace:use/Collection:Dancing+Script Quote Link to comment https://forums.phpfreaks.com/topic/285536-font-download-not-working-in-firefox/#findComment-1466170 Share on other sites More sharing options...
dalecosp Posted January 22, 2014 Share Posted January 22, 2014 Can I do this in the css file or does it have to be done outside of the css in the head tag of the HTML? It would go in the excerpts you showed above, wherever they live, and should work in either HEAD or a separate CSS file, per convention and specs. have you considered using Google Fonts: +1 for that. Some javascripting and general all-around web knowledge required, but a very nice API to use. Quote Link to comment https://forums.phpfreaks.com/topic/285536-font-download-not-working-in-firefox/#findComment-1466217 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.