Viviana
KPCKevin Powell - Community
•Created by Viviana on 6/4/2024 in #front-end
Custom Font doesn't work
I have a google font that works, but the customer wants that specific one because it resembles his logo. I'm glad the code is correct so I think the problem is I imported the font twice and I fix the problem now. Thank you for your help
25 replies
KPCKevin Powell - Community
•Created by Viviana on 6/4/2024 in #front-end
Custom Font doesn't work
it didn't work with @font-face so I put the link as well
25 replies
KPCKevin Powell - Community
•Created by Viviana on 6/4/2024 in #front-end
Custom Font doesn't work
I tried it and it didn't work, I guess I'll give it another try, thanks a lot
25 replies
KPCKevin Powell - Community
•Created by Viviana on 6/4/2024 in #front-end
Custom Font doesn't work
Failed to decode downloaded font: file:///D:/clatite/second_repo-main/second_repo-main/clatite/BadSignal.woff ; now I get this error
25 replies
KPCKevin Powell - Community
•Created by Viviana on 6/4/2024 in #front-end
Custom Font doesn't work
ok, I try this now
25 replies
KPCKevin Powell - Community
•Created by Viviana on 6/4/2024 in #front-end
Custom Font doesn't work
<link rel="preload" href="BadSignal.woff2" as="font" type="font/woff2" crossorigin>
25 replies
KPCKevin Powell - Community
•Created by Viviana on 6/4/2024 in #front-end
Custom Font doesn't work
.h1, .menu__h1 {
font-family: 'Bad Signal';
font-weight: normal;
font-style: normal;
}
@font-face { font-family: 'Bad Signal'; src: url('BadSignal.woff2') format('woff2'), url('BadSignal.woff') format('woff'); font-weight: normal; font-style: normal; font-display: swap; }
@font-face { font-family: 'Bad Signal'; src: url('BadSignal.woff2') format('woff2'), url('BadSignal.woff') format('woff'); font-weight: normal; font-style: normal; font-display: swap; }
25 replies
KPCKevin Powell - Community
•Created by Viviana on 6/4/2024 in #front-end
Custom Font doesn't work
I don't understand where I should write the as value
25 replies
KPCKevin Powell - Community
•Created by Viviana on 6/4/2024 in #front-end
Custom Font doesn't work
Thank you so much for your help
25 replies
KPCKevin Powell - Community
•Created by Viviana on 6/4/2024 in #front-end
Custom Font doesn't work
menu.html:1 The resource file:///D:/clatite/second_repo-main/second_repo-main/clatite/BadSignal.woff2 was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate
as
value and it is preloaded intentionally. This is what I see in devtools25 replies
KPCKevin Powell - Community
•Created by Viviana on 6/4/2024 in #front-end
Custom Font doesn't work
The font is in the same folder as the files, I uploaded the files again and it still won't work. Please give me more suggestions
25 replies
KPCKevin Powell - Community
•Created by Viviana on 6/4/2024 in #front-end
Custom Font doesn't work
Thank you
25 replies
KPCKevin Powell - Community
•Created by Viviana on 6/4/2024 in #front-end
Custom Font doesn't work
Can you please tell me where I should look for the correct url? I copied it from the font file. Thank you for your response
25 replies