Forum Xamarin.Forms

Label TextType = "Html" does not honor the FontFamily in iOS

flyhalflyhal SAMember ✭✭

If I set the TextType = "Html" for a Label, the Label will ignore the FontFamily only in iOS, everything is as expected in Android. The font family is correct, once the TextType is set to "Text" the correct font shows.

Answers

  • LandLuLandLu Member, Xamarin Team Xamurai

    It could be by design on iOS. If we want to display a set of html strings the label should respect the format of html instead of its own font family.
    You could raise an issue here:
    https://github.com/xamarin/Xamarin.Forms/issues
    Then we will help you track the progress.

  • flyhalflyhal SAMember ✭✭
    edited January 17

    @LandLu said:
    It could be by design on iOS. If we want to display a set of html strings the label should respect the format of html instead of its own font family.
    You could raise an issue here:
    https://github.com/xamarin/Xamarin.Forms/issues
    Then we will help you track the progress.

    I thought Xamarin Forms was supposed to yield a consistent behavior across all platforms, unless it's mentioned otherwise, you know the saying "cross-platform".

    However, there is an open bug report regarding this issue. It is supposed to be fixed in the next release.

  • LandLuLandLu Member, Xamarin Team Xamurai

    Would you mind posting the issue link here?

  • flyhalflyhal SAMember ✭✭

    @LandLu said:
    Would you mind posting the issue link here?

    https://github.com/xamarin/Xamarin.Forms/issues/8159

  • irshad_kairshad_ka Member ✭✭

    Is there any solution for this issue?

Sign In or Register to comment.