如何将info.plist中添加的自定义字体包含到webview的html页面中。 html包含在字符串
中目前包含字体为
@font-face{font-family:'PrStart';src:local('PrStart'),url('PrStart.otf') format('opentype');}
但它不起作用
答案 0 :(得分:2)
以下是您可以做的事情:
let string = "<font face='font-name' size='2'>" + "Your String"
并从此字符串加载webview。