Reputation: 83
I have a question about fonts rendering on websites. Following is an explanation of how to render my font in this blog post:
https://css-tricks.com/snippets/css/using-font-face/
Website Beta: https://perception.works/
Although I followed the blog post correctly, my font still isn't rendering correctly on the page. I want to know what is going wrong.
https://gyazo.com/baff88b5a8e1016c3507624c9d7ea31b?token=c94ee27bbcd6d958b7ade3712ec4d824
@font-face {
font-family: 'zBold';
src: url('assets/fonts/Zodiak-Black.eot'); /* IE9 Compat Modes */
src: url('assets/fonts/Zodiak-Black.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('assets/fonts/Zodiak-Black.woff2') format('woff2'), /* Super Modern Browsers */
url('assets/fonts/Zodiak-Black.woff') format('woff'), /* Pretty Modern Browsers */
url('assets/fonts/Zodiak-Black.ttf') format('truetype'), /* Safari, Android, iOS */
url('webfont.svg#svgFontName') format('svg'); /* Legacy iOS */
}
h2 {
font-size: 1.5vw;
font-family: 'zBold', Fallback, sans-serif;
margin-bottom: 19px;
font-weight: bold;
}
p {
font-size: 1vw;
font-family: 'zBold', Fallback, sans-serif;
line-height: 24px;
}
Upvotes: 0
Views: 139
Reputation: 502
Your font files are not being loaded, make sure that you are providing the correct path for these files.(Zodiak-Black.woff2, Zodiak-Black.woff & Zodiak-Black.ttf).
You can check the following links as well
Upvotes: 1