I have been working with compose and when i was creating a new screen, suddenly the text on that screen seemed to be smaller than intended font size. I have used same font size on different screens with compose and it works fine.
t
Thomas
07/16/2024, 7:14 AM
Are you looking at the screen's preview? Maybe the preview functions are not wrapped with the application's theme?
s
Suyash Nigam
07/16/2024, 7:20 AM
No it was not on preview but on the installed app. I also initially thought it was a theme issue but i am actually thinking it could be device specific becoz trying it on emulator and other device were showing the Ui as intended.
My device: Samsung s24 ultra
Emulator: Nexus 5 Api 33
👀 1
c
Chrimaeon
07/16/2024, 3:04 PM
Can you post screenshots of what you expect and what is actually happening!?
s
Suyash Nigam
07/16/2024, 3:09 PM
Sorry i just found out that the weird behavior was happening due to the system font size and i have to override it to provide custom resources in my activity. Thanks for the support 😄.