2016년 11월 8일 화요일

android webview set force system font





WebSettings webSettings = myWebView.getSettings();
webSettings.setStandardFontFamily("Roboto-Light");

  1. if html page not specified any font then it will take this dynamic font family.
    2.html specified font is not available then it will take our dynamic font in webview
Other than this Priority is given for serverpage font family not a dynamic.


ref : http://stackoverflow.com/questions/29512807/how-to-set-webview-font



댓글 없음:

댓글 쓰기

eclipse rcp dialog resize

  Dialog 안에 메소드를 만든다. private void autoResize(){     getShell().layout( true, true);     final Point newSize = getShell().computeSize...