I downloaded font from google fonts website but font family is not working after coding as mentioned below is there anyone who can help me out... My Font is located inside "project_dir/fonts/Opensand-Bold.ttf"... and css file is in "project_dir/css/style.css"
and below is my css code...
@font-face{
font-family: 'myFont';
src: url('../fonts/Opensand-Bold.ttf');
}
h1{
font-family: 'myFont';
}
And below is my hthl file in "public_dir/page.html"
<html>
<head>
<title></title>
<link rel="stylesheet" href="css/style.css"></link>
</head>
<body>
<h1>This is heading text </h1>
<p>This is paragraph text </p>
</body>
</html>
not working....