I have the following CSS structure:
PHP Code:
@font-face{
font-family: 'MyWebFont';
src: url('WebFont.eot');
src: url('WebFont.eot?#iefix') format('embedded-opentype'),
url('WebFont.woff') format('woff'),
url('WebFont.ttf') format('truetype'),
url('WebFont.svg#webfont') format('svg');
}
1. How to set correct path to this Webfont as I like to set different folder for all webfonts.
PHP Code:
@font-face{
font-family: 'webfonts/MyWebFont';
src: url('webfonts/WebFont.eot');
src: url('webfonts/WebFont.eot?#iefix') format('embedded-opentype'),
url('webfonts/WebFont.woff') format('woff'),
url('webfonts/WebFont.ttf') format('truetype'),
url('webfonts/WebFont.svg#webfont') format('svg');
}
Check folder webfonts/
2. Should be always all files in the same directory like defined CSS?
3. Should we separate Google webfonts, Myfonts, Cufon folder inside CSS folder?
Sample Cufon:
PHP Code:
<script type="text/javascript" src="js/cufon.js"></script>
<script type="text/javascript" src="js/.font.js"></script>
Cufon.registerFont(
Sample Myfonts.com:
PHP Code:
<script type="text/javascript">
//change this to true to enable troubleshooting mode
var myfont_webfont_test = false;
// change this to false if you're having trouble with WOFFs
var woffEnabled = true;
// to place your webfonts in a custom directory, uncomment this and set it to where your webfonts are.
var customPath = ".../Fonts";
</script>
Check /Fonts directory
4. Should be Webfont CSS before basic stylesheet?
Bookmarks