The index.html
file is in localhost , but the font
and the .css
file is on a remote server :
This is the source link:
What have I tried?
@font-face {
font-family: 'ProximaNovaBold';
src: url('https://ssl-177586.kinghost.net/fonts/ProximaNovaBold.eot');
src: url('https://ssl-177586.kinghost.net/fonts/ProximaNovaBold.eot') format('embedded-opentype'),
url('https://ssl-177586.kinghost.net/fonts/ProximaNovaBold.woff2') format('woff2'),
url('https://ssl-177586.kinghost.net/fonts/ProximaNovaBold.woff') format('woff'),
url('https://ssl-177586.kinghost.net/fonts/ProximaNovaBold.ttf') format('truetype'),
url('https://ssl-177586.kinghost.net/fonts/ProximaNovaBold.svg#ProximaNovaBold') format('svg');
}
body, html{font-family: 'ProximaNovaBold'!important;}
UPDATE: THE SOURCE ONLY WORKS IF THE FILE
index.html
is in the same domain of the font ie ... It does not work forlocalhost
also, but only if it is in domainhttps://ssl-177586.kinghost.net
.
QUESTION:
How to work around the index problem. html does not load font file from remote folders? The strange thing is that only the fonts are not loaded, but images and any other files are.