to confirm but thats correct behavior. You are setting fontFamily for only
as textStyle. If you look at the constructor for
it has default values for the rest that uses the default font family passed. The fix is to set the
while constructing your
This is mine: uses default material typography definitions but overrides the font family.
2 years ago
Actually this is not a bug. For some reason, different types of composables use different text styles (e.g. buttons vs. body text). In my theme, no custom font was defined for buttons. After adding a text style for the
parameter of typography, the button is following the theme font.