I'm working on android application and I'm trying to write arabic number inside arabic end of ayah symbol () into textview. I've tried to write the end of ayah symbol then the arabic number without any space but it didn't work. I'm using uthmani font.
I want to display it like this picture:
This is part of the code
NumberFormat nf = NumberFormat.getInstance(Locale.forLanguageTag("AR"));
temp+=" "+"\u06DD"+String.valueOf(nf.format(count))+" ";
"\u06DD" is the encoding of () in java.
The result became like this:
I just reversed the format and it worked
NumberFormat nf = NumberFormat.getInstance(Locale.forLanguageTag("AR"));
textView.setText(String.valueOf(nf.format(285))+"\u06DD");
(font was roboto)
In Flutter, you can use quran package. getVerseEndSymbol(int verseNumber)
function will return aya end symbol with the given verse number.
Example:
Text(
quran.getVerse(18, index + 1) + getVerseEndSymbol(index + 1),
textAlign: TextAlign.right,
),
This will return the symbol with the given verse number.
You can use font named me_quran with these unicodes U+FD3E + numbers + U+FD3F
﴿ ORNATE RIGHT PARENTHESIS Unicode: U+FD3F, UTF-8: EF B4 BF
﴾ ORNATE LEFT PARENTHESIS Unicode: U+FD3E, UTF-8: EF B4 BE
You can download the font file from here
Example of usage:
Try something like this ﴾١٩٦﴿
which looks like ﴾١٩٦﴿
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With