mustafa0x/qpc-fonts

Surah names not in mushaf.txt

Closed this issue · 3 comments

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

\uFB8D for "سورة".

And this function for the rest:

const get_surah_char = i => String.fromCharCode(i + 64396 + (i > 37 ? 33 : 0));

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

Ah, yes, indeed. One off.