@font-face not loading in a font?










0















I am having a hard time getting the Burbank font to load in on my website. I have downloaded it off the internet in an opentype font file named burbank-big-condensed-black.otf , This file is inside of a zip file named burbankblack.zip , and all of this is in a file named fonts. I tried to put this into my website using this code:






@font-face 
font-family: 'Burbank';
src: url('fonts/burbankblack.zip/burbank-big-condensed-black.otf');


.menu a
font-family: 'Burbank', sans-serif;





This results in the font only being changed to sans-serif. Is there anything i need to do that may help me get to get the font on my site, or is there something i need to change?










share|improve this question

















  • 3





    I don't think it's possible to let the server extract the otf font from a zip file. I would put the unzipped font files into a folder and reference those.

    – Johannes
    Nov 12 '18 at 20:07















0















I am having a hard time getting the Burbank font to load in on my website. I have downloaded it off the internet in an opentype font file named burbank-big-condensed-black.otf , This file is inside of a zip file named burbankblack.zip , and all of this is in a file named fonts. I tried to put this into my website using this code:






@font-face 
font-family: 'Burbank';
src: url('fonts/burbankblack.zip/burbank-big-condensed-black.otf');


.menu a
font-family: 'Burbank', sans-serif;





This results in the font only being changed to sans-serif. Is there anything i need to do that may help me get to get the font on my site, or is there something i need to change?










share|improve this question

















  • 3





    I don't think it's possible to let the server extract the otf font from a zip file. I would put the unzipped font files into a folder and reference those.

    – Johannes
    Nov 12 '18 at 20:07













0












0








0


0






I am having a hard time getting the Burbank font to load in on my website. I have downloaded it off the internet in an opentype font file named burbank-big-condensed-black.otf , This file is inside of a zip file named burbankblack.zip , and all of this is in a file named fonts. I tried to put this into my website using this code:






@font-face 
font-family: 'Burbank';
src: url('fonts/burbankblack.zip/burbank-big-condensed-black.otf');


.menu a
font-family: 'Burbank', sans-serif;





This results in the font only being changed to sans-serif. Is there anything i need to do that may help me get to get the font on my site, or is there something i need to change?










share|improve this question














I am having a hard time getting the Burbank font to load in on my website. I have downloaded it off the internet in an opentype font file named burbank-big-condensed-black.otf , This file is inside of a zip file named burbankblack.zip , and all of this is in a file named fonts. I tried to put this into my website using this code:






@font-face 
font-family: 'Burbank';
src: url('fonts/burbankblack.zip/burbank-big-condensed-black.otf');


.menu a
font-family: 'Burbank', sans-serif;





This results in the font only being changed to sans-serif. Is there anything i need to do that may help me get to get the font on my site, or is there something i need to change?






@font-face 
font-family: 'Burbank';
src: url('fonts/burbankblack.zip/burbank-big-condensed-black.otf');


.menu a
font-family: 'Burbank', sans-serif;





@font-face 
font-family: 'Burbank';
src: url('fonts/burbankblack.zip/burbank-big-condensed-black.otf');


.menu a
font-family: 'Burbank', sans-serif;






html css fonts






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 12 '18 at 20:02









LNinjaLNinja

102




102







  • 3





    I don't think it's possible to let the server extract the otf font from a zip file. I would put the unzipped font files into a folder and reference those.

    – Johannes
    Nov 12 '18 at 20:07












  • 3





    I don't think it's possible to let the server extract the otf font from a zip file. I would put the unzipped font files into a folder and reference those.

    – Johannes
    Nov 12 '18 at 20:07







3




3





I don't think it's possible to let the server extract the otf font from a zip file. I would put the unzipped font files into a folder and reference those.

– Johannes
Nov 12 '18 at 20:07





I don't think it's possible to let the server extract the otf font from a zip file. I would put the unzipped font files into a folder and reference those.

– Johannes
Nov 12 '18 at 20:07












2 Answers
2






active

oldest

votes


















0














That it's not a valid path for the src, burbankblack.zip, extract the font from the .zip, or delete the .zip.



@font-face 
font-family: 'Burbank';
src: url('fonts/burbankblack/burbank-big-condensed-black.otf');






share|improve this answer























  • i deleted the zip file. Still does not work :/

    – LNinja
    Nov 12 '18 at 20:28











  • Inside that .zip is the font, you need to extract it, not deleted. you know were the burbank-big-condensed-black.otf file is?

    – MartinBA
    Nov 12 '18 at 20:30












  • I moved the burbank-big-condensed-black.otf file out of the zip and into the font folder

    – LNinja
    Nov 12 '18 at 20:38











  • Perfect, use this -> src: url('fonts/burbank-big-condensed-black.otf');

    – MartinBA
    Nov 12 '18 at 20:39












  • This is what i did earlier, it didn't work.

    – LNinja
    Nov 12 '18 at 20:46


















0














Unzip it and upload it as a folder to a website directory, you need a correct location, best click on a font folder > properties > file location and copy the right path.






share|improve this answer






















    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53269283%2ffont-face-not-loading-in-a-font%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    That it's not a valid path for the src, burbankblack.zip, extract the font from the .zip, or delete the .zip.



    @font-face 
    font-family: 'Burbank';
    src: url('fonts/burbankblack/burbank-big-condensed-black.otf');






    share|improve this answer























    • i deleted the zip file. Still does not work :/

      – LNinja
      Nov 12 '18 at 20:28











    • Inside that .zip is the font, you need to extract it, not deleted. you know were the burbank-big-condensed-black.otf file is?

      – MartinBA
      Nov 12 '18 at 20:30












    • I moved the burbank-big-condensed-black.otf file out of the zip and into the font folder

      – LNinja
      Nov 12 '18 at 20:38











    • Perfect, use this -> src: url('fonts/burbank-big-condensed-black.otf');

      – MartinBA
      Nov 12 '18 at 20:39












    • This is what i did earlier, it didn't work.

      – LNinja
      Nov 12 '18 at 20:46















    0














    That it's not a valid path for the src, burbankblack.zip, extract the font from the .zip, or delete the .zip.



    @font-face 
    font-family: 'Burbank';
    src: url('fonts/burbankblack/burbank-big-condensed-black.otf');






    share|improve this answer























    • i deleted the zip file. Still does not work :/

      – LNinja
      Nov 12 '18 at 20:28











    • Inside that .zip is the font, you need to extract it, not deleted. you know were the burbank-big-condensed-black.otf file is?

      – MartinBA
      Nov 12 '18 at 20:30












    • I moved the burbank-big-condensed-black.otf file out of the zip and into the font folder

      – LNinja
      Nov 12 '18 at 20:38











    • Perfect, use this -> src: url('fonts/burbank-big-condensed-black.otf');

      – MartinBA
      Nov 12 '18 at 20:39












    • This is what i did earlier, it didn't work.

      – LNinja
      Nov 12 '18 at 20:46













    0












    0








    0







    That it's not a valid path for the src, burbankblack.zip, extract the font from the .zip, or delete the .zip.



    @font-face 
    font-family: 'Burbank';
    src: url('fonts/burbankblack/burbank-big-condensed-black.otf');






    share|improve this answer













    That it's not a valid path for the src, burbankblack.zip, extract the font from the .zip, or delete the .zip.



    @font-face 
    font-family: 'Burbank';
    src: url('fonts/burbankblack/burbank-big-condensed-black.otf');







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Nov 12 '18 at 20:08









    MartinBAMartinBA

    7161213




    7161213












    • i deleted the zip file. Still does not work :/

      – LNinja
      Nov 12 '18 at 20:28











    • Inside that .zip is the font, you need to extract it, not deleted. you know were the burbank-big-condensed-black.otf file is?

      – MartinBA
      Nov 12 '18 at 20:30












    • I moved the burbank-big-condensed-black.otf file out of the zip and into the font folder

      – LNinja
      Nov 12 '18 at 20:38











    • Perfect, use this -> src: url('fonts/burbank-big-condensed-black.otf');

      – MartinBA
      Nov 12 '18 at 20:39












    • This is what i did earlier, it didn't work.

      – LNinja
      Nov 12 '18 at 20:46

















    • i deleted the zip file. Still does not work :/

      – LNinja
      Nov 12 '18 at 20:28











    • Inside that .zip is the font, you need to extract it, not deleted. you know were the burbank-big-condensed-black.otf file is?

      – MartinBA
      Nov 12 '18 at 20:30












    • I moved the burbank-big-condensed-black.otf file out of the zip and into the font folder

      – LNinja
      Nov 12 '18 at 20:38











    • Perfect, use this -> src: url('fonts/burbank-big-condensed-black.otf');

      – MartinBA
      Nov 12 '18 at 20:39












    • This is what i did earlier, it didn't work.

      – LNinja
      Nov 12 '18 at 20:46
















    i deleted the zip file. Still does not work :/

    – LNinja
    Nov 12 '18 at 20:28





    i deleted the zip file. Still does not work :/

    – LNinja
    Nov 12 '18 at 20:28













    Inside that .zip is the font, you need to extract it, not deleted. you know were the burbank-big-condensed-black.otf file is?

    – MartinBA
    Nov 12 '18 at 20:30






    Inside that .zip is the font, you need to extract it, not deleted. you know were the burbank-big-condensed-black.otf file is?

    – MartinBA
    Nov 12 '18 at 20:30














    I moved the burbank-big-condensed-black.otf file out of the zip and into the font folder

    – LNinja
    Nov 12 '18 at 20:38





    I moved the burbank-big-condensed-black.otf file out of the zip and into the font folder

    – LNinja
    Nov 12 '18 at 20:38













    Perfect, use this -> src: url('fonts/burbank-big-condensed-black.otf');

    – MartinBA
    Nov 12 '18 at 20:39






    Perfect, use this -> src: url('fonts/burbank-big-condensed-black.otf');

    – MartinBA
    Nov 12 '18 at 20:39














    This is what i did earlier, it didn't work.

    – LNinja
    Nov 12 '18 at 20:46





    This is what i did earlier, it didn't work.

    – LNinja
    Nov 12 '18 at 20:46













    0














    Unzip it and upload it as a folder to a website directory, you need a correct location, best click on a font folder > properties > file location and copy the right path.






    share|improve this answer



























      0














      Unzip it and upload it as a folder to a website directory, you need a correct location, best click on a font folder > properties > file location and copy the right path.






      share|improve this answer

























        0












        0








        0







        Unzip it and upload it as a folder to a website directory, you need a correct location, best click on a font folder > properties > file location and copy the right path.






        share|improve this answer













        Unzip it and upload it as a folder to a website directory, you need a correct location, best click on a font folder > properties > file location and copy the right path.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 13 '18 at 1:17









        First NameFirst Name

        869




        869



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53269283%2ffont-face-not-loading-in-a-font%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to how show current date and time by default on contact form 7 in WordPress without taking input from user in datetimepicker

            Syphilis

            Darth Vader #20