2

This is the font I copied from the link at the google font webpage. Other fonts (muli, oswald, lato) works fine but sawarabi mincho is not rendered when I try to use it, chrome seems to use my default font when I want to use sawarabi mincho.

I tried

p{
    font-family: Sawarabi_Mincho;
}
p{
    font-family: Sawarabi+Mincho;
}
p{
    font-family: Sawarabi Mincho;
}
p{
    font-family: "sawarabi+mincho";
}

but none of these seems to work.

What is the correct way of calling the font that has space in its name?

user3000482
  • 185
  • 1
  • 2
  • 8

1 Answers1

3

Google Fonts tells you if you click on "+" at the font, then click on "1 Family selected" to show up the tool window:

Specify in CSS

Use the following CSS rules to specify these families:

font-family: 'Sawarabi Mincho', sans-serif;

For examples of how fonts can be added to webpages, see the getting started guide.

So this should work:

body {
  font-family: 'Sawarabi Mincho', sans-serif;
}
<!-- head: -->
<link href="https://fonts.googleapis.com/css?family=Sawarabi+Mincho" rel="stylesheet">

<!-- body: -->
<h1>A red flare silhouetted the jagged edge of a wing.</h1>
Community
  • 1
  • 1
juzraai
  • 5,693
  • 8
  • 33
  • 47