You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/07/20 03:16:17 UTC

[GitHub] [cordova-ios] joeldhenry opened a new issue #949: Text Size from iOS Settings not honoured by Cordova

joeldhenry opened a new issue #949:
URL: https://github.com/apache/cordova-ios/issues/949


   in iOS 13.6.0 you are able to change the "Text Size" of apps under "Settings"->"Display & Brightness"->"Text Size", however this not honoured in Cordova apps. This is honoured in Android as it injects the font-size style into the document DOM Element. I seem to recall this was working in previous iOS Versions when it was "regular" and "larger" settings, however this seems to be broken now.
   
   ### Version information
   Cordova-iOS 6.1.0
   ionic-webview 5.0.0
   
   ## Checklist
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] jcesarmobile commented on issue #949: Text Size from iOS Settings not honoured by Cordova

Posted by GitBox <gi...@apache.org>.
jcesarmobile commented on issue #949:
URL: https://github.com/apache/cordova-ios/issues/949#issuecomment-660926731


   As far as I know, iOS only respect the resizing if you use `font: -apple-system-body` on the texts you want to resize based on the adjustable font size.
   
   More information about `font: -apple-system-body` on https://webkit.org/blog/3709/using-the-system-font-in-web-content/


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] flyer1 commented on issue #949: Text Size from iOS Settings not honoured by Cordova

Posted by GitBox <gi...@apache.org>.
flyer1 commented on issue #949:
URL: https://github.com/apache/cordova-ios/issues/949#issuecomment-907290345


   For Capacitor v3 you can use the @capacitor/text-zoom plug in. getPreferred() will return the text size adjustment in a percentage (1=default size; the user can reduce it or go all the way up to 3.3). You then call set() on the plugin to apply this setting to the web control that hosts the ionic app. 
   
   The plugin adds a -webkit-text-size-adjust property to the body element in the DOM. This property is only support on mobile (desktop ignores) and affects how text is rendered. 
   
   Using this method allows you to use custom fonts (in case this is important for branding, etc)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org