Search code examples
cssubuntufontsinstallationwebfonts

How to use web fonts in ubuntu (?)


@import url(//fonts.googleapis.com/earlyaccess/notosanskr.css);

Body {
   Font-family: 'Noto Sans KR', 'Sans-serif';
}

I have written the code above. Because it is a web font, can I use it without installing a font file on the server?

When developing in a local environment (Mac), no problem. In real server Ubuntu, fonts are not displayed.


Solution

  • why can't you use link tag as shown below?

    just a suggestion.

     <link rel="stylesheet"href="https://fonts.googleapis.com/css?notosanskr">