How to Insert NSAttributedString using custom keyboard extension?

前端 未结 2 1665
名媛妹妹
名媛妹妹 2020-12-31 13:38

I want to write text in some custom fonts using keyboard Extension as these apps (1,2,3,4) are doing. I know how we can insert normal string in document proxy.



        
2条回答
  •  情书的邮戳
    2020-12-31 14:17

    The apps you are referring to don't use NSAttributedString or custom fonts. They simply replace letters with similar-looking Unicode characters. You can see these characters in any OS X app inside Edit -> Special Characters menu.

提交回复
热议问题