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 2021/08/27 15:35:02 UTC

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

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