locked
Some arabic words are not being rendered properly in native android RRS feed

  • Question

  • User399683 posted

    Hello geeks,

    I have an issue with Quran app which renders fatha as kasra on some words when those words have hamza on them..

    the correct ayah is below...

    Saturday, February 27, 2021 1:56 PM

All replies

  • User371688 posted

    It is difficult for us to reproduce the problem just based on your description. Could you please post some code snippet or a basic demo to github or onedriver so that we can help you better?


    Xamarin forums are migrating to a new home on Microsoft Q&A! We invite you to post new questions in the Xamarin forums’ new home on Microsoft Q&A! For more information, please refer to this sticky post.

    Monday, March 1, 2021 3:01 AM
  • User399683 posted

    I am using typefaces library to load fonts and using them on textView in android native in xamarin. Fonts are showing correctly in android 9.0 and above versions of android but the fonts are not showing correct words for for some letters like hamza, when it comes to hamza it makes fatha as kasar and kasar as fatha. The screenshots of the problem are attached below with the version 8.0 and below and 9.0 and above.

    incorrect rendering on android 8.0 and less incorrect rendering on android 8.0 and less

    correctly rendered on android 9.0 and above correctly rendered on android 9.0 and above

    //code for loading the fonts static Typeface quranFontSaleem = Typeface.CreateFromAsset(context.Assets, "Fonts/QuranFontSaleem.ttf"); public static void SetFontQuranSaleem(TextView textview) { textview.SetTypeface(quranFontSaleem, TypefaceStyle.Normal); }

    //calling above method to set the fonts on textView in another class Typefaces.SetFontQuranSaleem(holder.VerseArTextView);

    Monday, March 1, 2021 6:31 AM
  • User371688 posted

    If it is convenient for you, could you please post a basic demo to github or onedriver so that we can test on our side?

    Tuesday, March 2, 2021 6:32 AM