Answers for "css get font from google"

CSS
13

add google font

CSS
@import url(https://fonts.googleapis.com/css?family=Roboto);

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

body{
  font-family: "Roboto";
}
Posted by: Guest on September-30-2020
-1

embed google font css

<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&lang=en" />
Posted by: Guest on June-28-2020
0

font-display css google fonts

@font-face {
  font-family: "Open Sans Regular";
  src: url("...");
  font-display: swap;
}
Posted by: Guest on January-20-2021

Browse Popular Code Answers by Language