I have to change only one line to Uthmanic font.I have tried the below code.But the uthmani font wasn't loaded till now.
I have added the Uthmani font to the folder : assets->articles->UthmanicHafs.ttf
done.html:
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<p > Url to load contents </p>
<p class="uth">Change this text </p> --->change to uthmani font for this one line
</body>
style.css:
body {
margin: 15px;
}
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 300;
src: local('Open Sans'), local('OpenSans'), url(opensans.woff2) format('woff2');
}
@font-face {
font-family: 'Uthmani';
font-weight: 500;
src: local('Uthmani'), local('Uthmani'), url(UthmanicHafs.ttf) format('ttf');
}
.uth {
font-family: 'Uthmani'
font-size: 100px;
font-weight: bold;
}
I dont know why the uthmani font wasn't loaded.Anyone can help me with this.Thank you.