Android font size change reverts to default font

I have a custom renderer for a Label that implements the use of custom fonts and works with system fonts as well. For whatever reason when I change the size of the font the font reverts back to the default Android font.

I have tried implementing the Typeface assignment in the OnElementPropertyChanged function as well, but in debugging I can see that the correct Typeface is still assigned. Assigning it again has no effect. I have also tried using system fonts to no avail.

Any ideas? Thanks!


  • I've been working on this for a while and, of course, I figured it out right after I asked the question. I was checking for FontSize property change only. I needed to assign the Typeface if Font property changed as well, which seems obvious, but didn't realize that Font property was also changed when the FontSize property was changed (at least in this instance).

Sign In or Register to comment.