-1

I was looking at a website earlier today and they had a really cool font. I looked at their code and this is what it was:

font-family: "Museo300Regular", Helvetica, Arial, sans-serif;

I tried that for a site I'm building but it did nothing... Why won't the font change take effect on my site. Also why is "Museo300Regular" in quotes and the rest isn't?

The site is done with Bootstrap and so is mine so not sure why it's not working.

EDIT:::::::::::

Okay so I have to download it apparently, but how do I get it to be accessible by my bootstrap sass stylesheets?

user3408293
  • 1,377
  • 6
  • 18
  • 26

3 Answers3

0

The font has to be installed on the client so that the browsers can use them.

In this case, I presume that Museo300Regular is not installed in your PC

Mostly, font names that consists of more than one word is wrapped with quotes.

CSS 2.1 spec says:

Font family names must either be given quoted as strings, or unquoted as a sequence of one or more identifiers. This means most punctuation characters and digits at the start of each token must be escaped in unquoted font family names.

Amit Joki
  • 58,320
  • 7
  • 77
  • 95
0

You'll need to download the font and upload it to your server. The good news is that this specific font is free. There are a few fonts that come standard on most computers and those are listed later in the font-stack as fallback fonts. A font-stack tells the browser: load this font but if you don't have that font then load this other one and if you don't have that one just load one from the sans-serif family.

Normally you need to put quotes just around fonts with spaces or special characters in the name, but some people put it on all fonts to be consistent.

PixelGraph
  • 221
  • 2
  • 7
  • So if I don't have the font, how come I am able to see the font on their page? Can everyone see it even if they don't have it installed? If that is the case then what is the point of the backup fonts.. – user3408293 Apr 19 '14 at 12:39
0

It's a Webfont, which means that you don't need to have it locally to view it.

Here's the same font (I think) on Adobe's Typekit-site https://typekit.com/fonts/museo

Read up on them for example here

Pete TNT
  • 8,293
  • 4
  • 36
  • 45