@font-face not loading in a font?
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?
html css fonts
add a comment |
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?
html css fonts
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
add a comment |
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?
html css fonts
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
html css fonts
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
add a comment |
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
add a comment |
2 Answers
2
active
oldest
votes
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');
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
add a comment |
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.
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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');
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
add a comment |
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');
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
add a comment |
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');
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');
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
add a comment |
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
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Nov 13 '18 at 1:17
First NameFirst Name
869
869
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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