怎么在 Xcode 的 Fonts& Colors 里把代码的字体设置为 OSX 10.11 和 iOS 9 的系统默认字体? 网上说新字体叫叫 San Francisco, 找了半天在 All Fonts 里没找到啊

2015-06-10 12:13:41 +08:00
 gulullu
5929 次点击
所在节点    macOS
14 条回复
cielpy
2015-06-10 12:18:40 +08:00
新字体叫Pingfang吧?
cielpy
2015-06-10 12:19:11 +08:00
哦。似乎是中文有新字体,英文没听说换字体了呀。
insraq
2015-06-10 12:21:10 +08:00
thedevil5032
2015-06-10 12:33:27 +08:00
Why not Inconsolata or Source Code Pro?
gulullu
2015-06-10 12:51:51 +08:00
@cielpy Pingfang 貌似也没找到
Vanson
2015-06-10 12:53:55 +08:00
我也没有找到San Francisco Font,系统已经是10.11
gulullu
2015-06-10 12:59:19 +08:00
@insraq 谢谢,验证可用
zikkeung
2015-06-10 14:08:50 +08:00
Pingfang去哪下载尼,San Francisco Font只是英文的
alexlur
2015-06-10 16:00:48 +08:00
Hi there,

You can use “-apple-system-font” as a generic reference to the system font, and if it doesn’t work, try “.SFNSText-Regular” (with the dot in front).
jjgod
2015-06-10 16:17:42 +08:00
San Francisco 不是等宽字体……
Satelli
2015-06-10 18:11:21 +08:00
用 FontForge 查看了从 OS X El Capitan 中提取出来的“苹方”字体与 San Francisco,这些字体的名称都以“.”开头,各种属性的字段中甚至还有“System Font”、“系统字体”的字样出现。

将这些字体在 OS X Yosemite 与 Mavericks 中使用字体册安装过程中并不会弹出像其他字体那样的预览框,且不会出现在字体册中,Photoshop、Pages 等软件也不会在字体列表中将这些字体列出。

姑且做下面的猜测:

Apple 仅允许 App 使用苹方与 San Francisco 作为界面字体,不允许作为创造内容的字体。
clippit
2015-06-10 18:24:52 +08:00
@Satelli 我也发现了,字体名称是.开头的,装到 Yosemite 里面不会显示(就像隐藏文件),但是重复安装,又会提示字体重复
zander
2015-06-11 00:10:19 +08:00
因为是隐藏字体,“.”开头的
lguan
2015-06-11 13:30:00 +08:00
用“.PingFang-SC-Regular”
参考: http://bitinn.net/11280/

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/197456

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX