Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
获取确切的字体名称有时会很痛苦。我经常做的调试是在某处放置一个断点,并通过调用查看哪些字体可以通过调试器使用:
(lldb) po UIFont.familyNames
然后一旦你找到正确的家庭,BiauKai(或最后一个叫什么)通过调用获得确切的名字
BiauKai
(lldb) po UIFont.fontNames(forFamilyName: "BiauKai")