add google font to cssangular code example
Example 1: 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";
}
Example 2: add google font to wordpress theme
function wpb_add_google_fonts() {
wp_enqueue_style( 'wpb-google-fonts', 'https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,400,700,300', false );
}
add_action( 'wp_enqueue_scripts', 'wpb_add_google_fonts' );