0

how to include custom font added in info.plist into html page of webview. html is included as string

currently including font as

 @font-face{font-family:'PrStart';src:local('PrStart'),url('PrStart.otf') format('opentype');}

but it is not working

Dharma
  • 3,007
  • 3
  • 23
  • 38
kva
  • 64
  • 1
  • 7
  • Possible duplicate of [Using custom font in a UIWebView](https://stackoverflow.com/questions/10490696/using-custom-font-in-a-uiwebview) – Piyush Jun 15 '17 at 04:57

1 Answers1

2

Here is what you can do:

let string = "<font face='font-name' size='2'>" + "Your String"

and load webview from this string.

Vaibhav Parmar
  • 461
  • 4
  • 14