Make TextElement reapply styles if base text height has changed.
If the size or typeface style was rebound, it would already trigger the text styles to be re-applied. However, it's possible that changing the language to one that uses a different alphabet, or changing accessibility settings could change the base text height, even if the actual font size or typeface was not changed. Because Piet uses padding to adjust the top and bottom of TextElements to have the correct line height, the styles in the StyleProvider need to be updated as well.
2 files changed