2
The archive index.html
is in the localhost, but the font
and the file .css
is in a remote server:
This is the source link:
https://ssl-177586.kinghost.net/fonts/ProximaNovaBold.ttf
What I’ve already 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 as the font or... Does not work forlocalhost
also, but only if you are in the domainhttps://ssl-177586.kinghost.net
.
QUESTION:
How to get around the index. html problem by not loading font file from remote folders? The strange thing is that only fonts are not loaded, but images and any other file are.
Someone to help?
– Lollipop
I’ll see here what can be
– DiChrist
save me plisss
– Lollipop
comrade your code is right, just give a space before the ! Port. You can’t use this source because it’s actually being blocked. I’ll see if there’s any way you can use it without lowering it
– DiChrist
It must be some kind of "privacy policy" in which the source holder blocks it from being used.
– DiChrist
Lollipop she can’t be in another folder?
– DiChrist
Can. in any folder. I want to learn how to use it and know why I can’t in that case.
– Lollipop
The reason is that the file code
index.html
is placed inside a text editor for generating tabs for face book. So everything should be external: images, fonts, etc...– Lollipop
Not being in the same location is different from not being in the same domain, you need it to be in a different domain or it can simply be in a separate folder in the same domain?
– Leandro Godoy Rosa
About the problem after editing, it can be by some block on the server. Both yours (local) and online. I’ve been there.
– celsomtrindade
Have any feedback ?
– Diego Souza
You are in question. How to update.
– Lollipop