0

So created this nice app. Some testers go test. Some are older folks, don't have good eye sight. Want bigger font. So we make Settings Page: fonts for everyone.

Good, not problem. Everything text in css font-size has em. But is cordova app. So HTML is loaded quite a number of times. There goes Javascript DOM stuff.

Still not problem. We have view-port.

Are there other ways to do this? Quite a number of HTML parts are deleted and others are put back in, so to add a class to an element does not work.

Community
  • 1
  • 1

1 Answers1

0

This is how I solved it: It is not a changing of the font-size, it is an abibity for the user to zoom, or, actually: user-scalable=yes

Old:

<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">

Into:

<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1.0, user-scalable=yes">