Welcome to deBUG.to Community where you can ask questions and receive answers from Microsoft MVPs and other experts in our community.
0 like 0 dislike
7.8k views
in Power Apps by 3 3 4

In PowerApps, How can I make the font size responsive with the screen size in the canvas app?

Ex: If the screen increased the font increased automatically.

Also, I need to know if there is any way to apply responsive font size for the whole canvas app in PowerApps??


1 Answer

0 like 0 dislike
by 48 54 93

To increase the font automatically when the canvas screen changes,

in the font size of the control you need put this formula

Switch(Parent.Size, ScreenSize.Small,12, ScreenSize.Medium,18,30)

so the font will be 12 in the small screen and 18 for the medium screen otherwise it will be 30 ,and you can change these font sizes to your desired font sizes.

You can use variable to apply these for all controls
On the screen onVisible property we will set a variable for the font responsive size we need and use it in the controls we need to make its font responsive.
as the canvas app is not responsive by design and there isn't one place to apply for all the canvas but variables make it more easy instead of writing the whole formula every time.

by
0 0
Switch(Parent.Size, ScreenSize.Small,12, ScreenSize.Medium,13,14)
adjust the font size based on screen size.

Happy Power Apping..
If you don’t ask, the answer is always NO!
...