Font with Character Variant Features
I am using an arabic font called scheherazade New which has character variant features.
So the unicode of one character is 064F.
The unicode of its 2 variant characters is 064F cv70 and 064F cv70,2.
Normally to replace one arabic character with another you use \x{064F}.
But in this case how would you replace one character with another?
More details about character variants here - https://software.sil.org/fonts/features/
