1

How to create webview with custom font. Webview load external link ("www.example.com").This site is showed with custom font in my android application.

Thanks for all answer.

Nay Thu
  • 11
  • 1

1 Answers1

1

Put you ttf file in Asset and try this

<html>
<head>
<style type="text/css">
@font-face {
    font-family: typeface;
    src: url("file:///android_asset/fonts/typeface.otf")
}
body {
    font-family: typeface;
    font-size: medium;
}
</style>
</head>
<body>
</body>
</html>
Mobile Apps Expert
  • 1,028
  • 1
  • 8
  • 11