I'd like to set the font size I'm using in a WebView to a specific pixel size. I'm doing something along the lines of
<p style="font-size: 18px">Text</p>
However, the size of the font is different on different devices. Any idea how to make this work?
Thanks!
The solution I found was adding the following meta tag to the HTML
<meta name=\"viewport\" content=\"target-densitydpi=device-dpi\" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With