title: How to change font size in the WebView (Swift 5)
body: <p>I load text to the WebView. And I need to change font and its size.
  I use this code, but font is too small. It isn't 15 points. What is my problem?</p>
  <pre><code>private lazy var webView: WKWebView = {
          let contentController = WKUserContentController()
          
          let webConfig = WKWebViewConfiguration()
          webConfig.userContentController = contentController
          webConfig.dataDetectorTypes = [.phoneNumber, .link]
          
          let web = WKWebView(frame: .zero, configuration: webConfig)
          web.navigationDelegate = self
          return web
      }()
  
      ...
      let fontName =  &quot;PFHandbookPro-Regular&quot;
      let fontSize = 15
      let fontSetting = &quot;&lt;span style=\&quot;font-family: \(fontName);font-size: \(fontSize)\&quot;&lt;/span&gt;&quot;
      webView.loadHTMLString(fontSetting + myHTMLString, baseURL: nil)
  </code></pre>
  <p><a href="https://i.stack.imgur.com/VNvzZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VNvzZ.png" alt="example" /></a></p>