1) 웹에 있는 폰트를 적용하려면 header에 아래의 문자열을 추가

1
2
3
4
String header = "<style>@font-face {font-family:'nanum';"
                               + "font-weight: normal; font-style: normal; "
                               + "src:url('https://matcl.com/lilipark/assets/nanum.ttf'); }"
                               "body {font-family: 'nanum'; } </style>";

로컬에 있는 폰트는 아래의 문자열을 추가

1
2
3
4
String header = "<style>@font-face {font-family:'nanum';"
                               + "font-weight: normal; font-style: normal;"
                               + " src:url('file:///android_asset/fonts/NanumGothic.ttf'); }"
                               "body {font-family: 'nanum'; } </style>";
Posted by Liliniser
: