title: Console printing different text font swift
body: <p>I have set different font for my <code>textField</code> and it is working fine. I can enter a gujarati font into my <code>textField</code> this way I set font:</p>
  
  <p><a href="https://i.stack.imgur.com/pwmpF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pwmpF.png" alt="enter image description here"></a> </p>
  
  <p>But when I try to print user's text it's printing english letters. Suppose I enter into <code>textField</code> like <code>અબચ</code> but it prints <code>Optional("abc")</code> into console so I tried to use <code>attributedString</code> but it gives me same result and below is my code:</p>
  
  <pre><code>if let font = UIFont(name: "HARIKRISHNA", size: 16) {
          let attributedString = NSMutableAttributedString(string: userText!, attributes: [NSFontAttributeName : font])
          print(attributedString.string)
      } else {
          // The font "Raleway-SemiBold" is not found
          print("The font Raleway-SemiBold is not found")
  
      }
  </code></pre>
  
  <p>Is there any way to log output in same language of <code>textField</code>?</p>
  
  <p><a href="http://s000.tinyupload.com/?file_id=06703428613397777419" rel="nofollow noreferrer">Sample</a> for more Info.</p>