mustafa0x / qpc-fonts

KF Glorious Qur'an Printing Complex fonts
83 stars 15 forks source link

Surah names not in mushaf.txt #1

Closed agmemon10 closed 4 years ago

agmemon10 commented 4 years ago

Does anyone have the characters that represent the surah names that are to be used with the QCF_BSML.TTF font (see picture for example with Surah al-Mulk)? I did not see these characters in the mushaf.txt file

image

mustafa0x commented 4 years ago

\uFB8D for "سورة".

And this function for the rest:

const get_surah_char = i => String.fromCharCode(i + 64396 + (i > 37 ? 33 : 0));
agmemon10 commented 4 years ago

JazakAllahu khayran! You're a genius! Just fyi, i think \ufb8c is what gives "سورة" and \ufb8d is for "الفاتحة"

mustafa0x commented 4 years ago

Ah, yes, indeed. One off.