FANDOM


  • Been trying to use a custom font for a fictional language on my wiki.

    I uploaded the file (.otf) after getting the extension enabled by staff. However, even after adding the font face to the CSS, it says the file is not found.

    Links: https://schizoidnightmares.fandom.com/wiki/MediaWiki:Wikia.css https://schizoidnightmares.fandom.com/wiki/File:Dolgo.otf

    Test: https://schizoidnightmares.fandom.com/wiki/Schizoid_Nightmares#Pseudonym

    The text "Wuhunnae Crunogiorsan" within brackets should appear in the custom font, but instead returns: Failed to load resource: the server responded with a status of 404.

    EDIT: I got it working by adding the following to the wiki's MediaWiki:Wikia.css:

    @font-face {
      font-family: 'Dolgo';
      src: url('https://vignette.wikia.nocookie.net/schizoidnightmares/images/c/c6/Dolgo.otf/revision/latest?cb=20200527023947') format('opentype');
    }
    
      Loading editor
    •   Loading editor
    • UpnCbs06, they are not importing from Google Fonts so that page won't help.

      The issue is that you need to provide the full URL of the file, not just the name of the file. Go to the file's page. See how it has the name followed by the file information? The name should be a link. Copy the URL from that link and use that in your CSS as the source. You can leave out the end of the URL starting with the "?".

        Loading editor
    • Andrewds1021 wrote: UpnCbs06, they are not importing from Google Fonts so that page won't help.

      The issue is that you need to provide the full URL of the file, not just the name of the file. Go to the file's page. See how it has the name followed by the file information? The name should be a link. Copy the URL from that link and use that in your CSS as the source. You can leave out the end of the URL starting with the "?".

      That worked!

      In case others have a similar issue, here's what my code looks like:

      @font-face {

       font-family: 'Dolgo';
       src: url('Dolgo.otf) format('opentype');
      

      }

        Loading editor
    • Looks like you updated... is it working now?

        Loading editor
    • Wait... this is what is in your MediaWiki:Wikia.css not what you posted above:

      @font-face {
        font-family: 'Dolgo';
        src: url('https://vignette.wikia.nocookie.net/schizoidnightmares/images/c/c6/Dolgo.otf/revision/latest?cb=20200527023947') format('opentype');
      }
      
        Loading editor
    • Fandyllic wrote: Wait... this is what is in your MediaWiki:Wikia.css not what you posted above:

      @font-face {
        font-family: 'Dolgo';
        src: url('https://vignette.wikia.nocookie.net/schizoidnightmares/images/c/c6/Dolgo.otf/revision/latest?cb=20200527023947') format('opentype');
      }
      

      That would be my bad, I did post it above (you can check the source for confirmation), I just didn't post it correctly. I'll edit my OP to include the answer.

        Loading editor
    • A FANDOM user
        Loading editor
Give Kudos to this message
You've given this message Kudos!
See who gave Kudos to this message
Community content is available under CC-BY-SA unless otherwise noted.