Skip to content

Commit 6b95c03

Browse files
authored
Prevent Android Webview from changing font-size (#231)
1 parent bc24287 commit 6b95c03

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

android/src/main/java/android/print/PdfConverter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ public void onWriteCancelled() {
111111
}
112112
});
113113
WebSettings settings = mWebView.getSettings();
114+
settings.setTextZoom(100);
114115
settings.setDefaultTextEncodingName("utf-8");
115116
mWebView.loadDataWithBaseURL(mBaseURL, mHtmlString, "text/HTML", "utf-8", null);
116117
}

0 commit comments

Comments
 (0)