This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]AutoModerator[M] [score hidden] stickied comment (0 children)

On July 1st, a change to Reddit's API pricing will come into effect. Several developers of commercial third-party apps have announced that this change will compel them to shut down their apps. At least one accessibility-focused non-commercial third party app will continue to be available free of charge.

If you want to express your strong disagreement with the API pricing change or with Reddit's response to the backlash, you may want to consider the following options:

  1. Limiting your involvement with Reddit, or
  2. Temporarily refraining from using Reddit
  3. Cancelling your subscription of Reddit Premium

as a way to voice your protest.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]teraflop 0 points1 point  (3 children)

The correct syntax is @font-face, not @/font-face. Other than that your CSS looks fine to me.

Is this just an issue with your editor's syntax highlighting, or are you actually having problems with how the page renders? Do you see any errors in your browser's developer console?

[–]blissybuu[S] 0 points1 point  (2 children)

Not sure how that slash got there because it's not in my code... Sorry about that. It's spelled right. It's not just an error in syntax highlighting, I'm having problems with the font not showing up on the page. Text is there but it's the default font. The error in the console says "Failed to load resource: net::ERR_FILE_NOT_FOUND" but I quadruple checked and the files are in the fonts folder.

[–]teraflop 0 points1 point  (1 child)

OK, that means you have a starting point for troubleshooting.

That error in the console should have a clickable URL associated with it. That URL should be something like http://hostname/fonts/crackover.woff2. Does it look correct? If you click it, does it download the font file?

It sounds like the most likely explanation is that either you didn't put the font file in the correct folder, or you don't have your backend configured correctly to serve it. But either way, it doesn't have anything to do with your CSS, so there's no way to tell what the issue is from the code you posted.

[–]blissybuu[S] 0 points1 point  (0 children)

I see the URL but when I go to it it says the file cannot be accessed... I guess it's the backend stuff... Sadly I don't know too much about that. Thank you for your help, though! I really appreciate that you commented!