How to get San Francisco font into Xcode?

自闭症网瘾萝莉.ら 提交于 2019-12-11 12:25:58

问题


I just download and installed the SF fonts. I see them in Sketch and the Font Book but not Xcode (Interface Builder). I've restarted Xcode but the SF or San Francisco fonts still do not show up in the text tool.

Does anyone know if something special is required to get them working in Xcode?

OS X 10.11.1
Xcode 7.1.1


回答1:


All you have to do is to add your (.ttf) file to resources. You can drag and drop it and then a dialogue box will appear after that check the checkbox for your application and you should be set. Then add the font to Targets >> Build Phase >> Copy Bundle Resources and thats it.



来源:https://stackoverflow.com/questions/34109428/how-to-get-san-francisco-font-into-xcode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!