Font size independent of screen density in html and webview

On Android, we have density independent pixels (dp, sp) for font sizes and sizes.

What is the alternative in html + phonegapp?

Do I need to create a separate layout for each size class (ldpi, mdpi, hdpi ...)?

If the screen density is too high, can an application programmatically “enlarge” a web page (WebView) so that the font looks too small?

PS viewport-percent units vw and vh do not work in Android webview.

+4
source share

Source: https://habr.com/ru/post/1483006/


All Articles