You can use this font in your application by downloading the font file—available in multiple formats such as
TTF, WOFF, and WOFF2. You may choose the format that best
fits your platform or include multiple formats for broader compatibility.
Some fonts—such as those used for Surah names or Juz titles—depend on special characters or ligatures to
render correctly. Ligature files for these fonts are available on this page.
Standard Quran fonts require a separate Quran script, which you can download from the
Quran Scripts
page.
The next step is to declare the font using @font-face
in your CSS file and apply it to your
elements.
@font-face
Rule in Your CSS
@font-face {
font-family: 'qpc-hafs';
src: url('https://static-cdn.tarteel.ai/qul/fonts/UthmanicHafs1Ver18.ttf');
font-display: swap;
}
@font-face
in your html
You can use the font by:
style
or CSS:
<div style="font-family: 'qpc-hafs';">
</div>
.my-text {
font-family: qpc-hafs;
}
<p class="my-text"></p>