i want to use a custom font for my website but it's not working.
font name "Road_Rage" link: [road rage font link][1]
[1]:
@font-face { font-family: 'road'; src: url('https://youssef-habchi.com/Emb/Road-Rage/Road_Rage.woff'); font-style: normal; } p{ font-family: 'road'; }
<p> this is your text </p>
please help me.
I suspect you running into a cross origin (CORS) problem.
if I run this code from my server - ie the font file is on the same domain:
<style>
@font-face {
font-family: 'road';
src: url('Road_Rage.woff');
font-style: normal;
}
p{
font-family: 'road';
}
</style>
<p> this is your text </p
But I get it in Times New Roman (my default) if I try to serve the font from your given url.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.