Answers for "get google font in css"

CSS
4

import google font css

@import url('https://fonts.googleapis.com/css?family=Open+Sans&display=swap');
.generic_class {
	font-family: 'Open Sans', sans-serif;
}
Posted by: Guest on November-10-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