Skip to content

Github pages doesn't load font from google font correctly #64833

Answered by proksh
lee-pai-long asked this question in General
Discussion options

You must be logged in to vote

I assume this is the file you are talking about - https://github.com/lee-pai-long/resume/blob/main/index.html

Let's address the issue step by step:

  1. Google Fonts Link:

The @import link for the Oswald font seems to be outdated or very specific. Typically, for Google Fonts, the link is more straightforward.

You should go to Google Fonts, select Oswald, and then copy the provided link. It should look something like:

@import url('https://fonts.googleapis.com/css2?family=Oswald&display=swap');
  1. Fallback Fonts:

You mentioned that you didn't specify a fallback font. It's always a good practice to provide fallback fonts. This ensures that if the Oswald font fails to load, another similar font …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@eden-amari
Comment options

Comment options

You must be logged in to vote
1 reply
@lee-pai-long
Comment options

Answer selected by lee-pai-long
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants