Socket
Book a DemoInstallSign in
Socket

@totalpave/cordova-plugin-text-zoom

Package Overview
Dependencies
Maintainers
3
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@totalpave/cordova-plugin-text-zoom

Provides a Text Zoom override on the Android webview

0.1.0
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
3
Weekly downloads
 
Created
Source

@totalpave/cordova-plugin-text-zoom

This plugin provides a tp-text-zoom preference to control the text zoom.

The default value is auto, in which case no text zoom is explicitly set on the webview. Any other value is parsed as an int and passed to setTextZoom. If the value is not parseable as an integer, then auto will be used.

This setting will override the OS accessiblity text zoom settings, so generally speaking it's advisable to not change this setting and to instead make your UI adaptive to text size changes. However, sometimes this is not possible. Setting tp-text-zoom to 100 will force the webview to render text at it's "normal" size.

Note this only applies to the webview content. Native UI such as dialogs will still be scaled according to the OS accessibility settings.

Example Usage (config.xml):

...
<platform name="android">
    <preference name="tp-text-zoom" value="100" />
</platform>

FAQs

Package last updated on 31 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.