Xcode 字体 设置-- Xcode family没有显示的字体

Posted Star

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Xcode 字体 设置-- Xcode family没有显示的字体相关的知识,希望对你有一定的参考价值。

前往文件夹 -> /Users/user/Library/Developer/Xcode/UserData/FontAndColorThemes/  (user改为自己的用户名)

-----如果是刚安装的Xcode 可能没有FontAndColorThemes 文件夹,自行新建 

 

打开文件夹后,如下图

技术分享

 

找到需要修改的 字体主题,导入Xcode中修改,如下图

技术分享

 

 打开后,修改对应的字体

技术分享

 

 备份一份,我修改好的字体,(已修改模板中多个不同类型代码显示颜色,方便阅读)

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>DVTConsoleDebuggerInputTextColor</key>
<string>1 1 1 1</string>
<key>DVTConsoleDebuggerInputTextFont</key>
<string>Menlo-Bold - 11.0</string>
<key>DVTConsoleDebuggerOutputTextColor</key>
<string>1 1 1 1</string>
<key>DVTConsoleDebuggerOutputTextFont</key>
<string>Menlo-Regular - 11.0</string>
<key>DVTConsoleDebuggerPromptTextColor</key>
<string>0.255 0.714 0.27 1</string>
<key>DVTConsoleDebuggerPromptTextFont</key>
<string>Menlo-Bold - 11.0</string>
<key>DVTConsoleExectuableInputTextColor</key>
<string>1 1 1 1</string>
<key>DVTConsoleExectuableInputTextFont</key>
<string>Menlo-Regular - 11.0</string>
<key>DVTConsoleExectuableOutputTextColor</key>
<string>1 1 1 1</string>
<key>DVTConsoleExectuableOutputTextFont</key>
<string>Menlo-Bold - 11.0</string>
<key>DVTConsoleTextBackgroundColor</key>
<string>0.118 0.125 0.157 1</string>
<key>DVTConsoleTextInsertionPointColor</key>
<string>1 1 1 1</string>
<key>DVTConsoleTextSelectionColor</key>
<string>0.397 0.397 0.302 1</string>
<key>DVTDebuggerInstructionPointerColor</key>
<string>0.12 0.31 0.34 1</string>
<key>DVTMarkupTextBackgroundColor</key>
<string>0.18856 0.195 0.22444 1</string>
<key>DVTMarkupTextBorderColor</key>
<string>0.253475 0.2594 0.286485 1</string>
<key>DVTMarkupTextCodeFont</key>
<string>Menlo-Regular - 10.0</string>
<key>DVTMarkupTextEmphasisColor</key>
<string>1 1 1 1</string>
<key>DVTMarkupTextEmphasisFont</key>
<string>.SFNSText-Italic - 10.0</string>
<key>DVTMarkupTextLinkColor</key>
<string>0.255 0.333 0.819 1</string>
<key>DVTMarkupTextLinkFont</key>
<string>.SFNSText-Regular - 10.0</string>
<key>DVTMarkupTextNormalColor</key>
<string>1 1 1 1</string>
<key>DVTMarkupTextNormalFont</key>
<string>.SFNSText-Regular - 10.0</string>
<key>DVTMarkupTextOtherHeadingColor</key>
<string>1 1 1 0.5</string>
<key>DVTMarkupTextOtherHeadingFont</key>
<string>.SFNSText-Regular - 14.0</string>
<key>DVTMarkupTextPrimaryHeadingColor</key>
<string>1 1 1 1</string>
<key>DVTMarkupTextPrimaryHeadingFont</key>
<string>.SFNSDisplay-Regular - 24.0</string>
<key>DVTMarkupTextSecondaryHeadingColor</key>
<string>1 1 1 1</string>
<key>DVTMarkupTextSecondaryHeadingFont</key>
<string>.SFNSText-Regular - 18.0</string>
<key>DVTMarkupTextStrongColor</key>
<string>1 1 1 1</string>
<key>DVTMarkupTextStrongFont</key>
<string>.SFNSText-Bold - 10.0</string>
<key>DVTSourceTextBackground</key>
<string>0.0347313 0.0370846 0.0468683 1</string>
<key>DVTSourceTextBlockDimBackgroundColor</key>
<string>0.5 0.5 0.5 1</string>
<key>DVTSourceTextInsertionPointColor</key>
<string>1 1 1 1</string>
<key>DVTSourceTextInvisiblesColor</key>
<string>0.536854 0.536854 0.536854 1</string>
<key>DVTSourceTextSelectionColor</key>
<string>0.397 0.397 0.302 1</string>
<key>DVTSourceTextSyntaxColors</key>
<dict>
<key>xcode.syntax.attribute</key>
<string>0.335 0.456 0.488 1</string>
<key>xcode.syntax.character</key>
<string>0.469 0.426 0.77 1</string>
<key>xcode.syntax.comment</key>
<string>0.255 0.714 0.27 1</string>
<key>xcode.syntax.comment.doc</key>
<string>0.255 0.714 0.27 1</string>
<key>xcode.syntax.comment.doc.keyword</key>
<string>0.255 0.714 0.27 1</string>
<key>xcode.syntax.identifier.class</key>
<string>0.985121 0.0467123 0.0291477 1</string>
<key>xcode.syntax.identifier.class.system</key>
<string>0.0976965 0.496566 0.705882 1</string>
<key>xcode.syntax.identifier.constant</key>
<string>0.892402 0.792808 0.253131 1</string>
<key>xcode.syntax.identifier.constant.system</key>
<string>0.0976965 0.496566 0.705882 1</string>
<key>xcode.syntax.identifier.function</key>
<string>0.350311 0.416865 0.754 1</string>
<key>xcode.syntax.identifier.function.system</key>
<string>0.129075 0.926391 0.0512131 1</string>
<key>xcode.syntax.identifier.macro</key>
<string>0.778 0.488 0.284 1</string>
<key>xcode.syntax.identifier.macro.system</key>
<string>0.778 0.488 0.284 1</string>
<key>xcode.syntax.identifier.type</key>
<string>0.926271 0.931258 0.700537 1</string>
<key>xcode.syntax.identifier.type.system</key>
<string>0.0976965 0.496566 0.705882 1</string>
<key>xcode.syntax.identifier.variable</key>
<string>0.955575 0.70068 0.0466059 1</string>
<key>xcode.syntax.identifier.variable.system</key>
<string>0.0976965 0.496566 0.705882 1</string>
<key>xcode.syntax.keyword</key>
<string>0.698 0.134252 0.568962 1</string>
<key>xcode.syntax.number</key>
<string>0.469 0.426 0.77 1</string>
<key>xcode.syntax.plain</key>
<string>1 1 1 1</string>
<key>xcode.syntax.preprocessor</key>
<string>0.778 0.488 0.284 1</string>
<key>xcode.syntax.string</key>
<string>0.859 0.171 0.219 1</string>
<key>xcode.syntax.url</key>
<string>0.255 0.333 0.819 1</string>
</dict>
<key>DVTSourceTextSyntaxFonts</key>
<dict>
<key>xcode.syntax.attribute</key>
<string>Times-Roman - 14.0</string>
<key>xcode.syntax.character</key>
<string>Times-Roman - 14.0</string>
<key>xcode.syntax.comment</key>
<string>Times-Roman - 14.0</string>
<key>xcode.syntax.comment.doc</key>
<string>Times-Roman - 14.0</string>
<key>xcode.syntax.comment.doc.keyword</key>
<string>Times-Roman - 14.0</string>
<key>xcode.syntax.identifier.class</key>
<string>Times-Roman - 14.0</string>
<key>xcode.syntax.identifier.class.system</key>
<string>Times-Roman - 14.0</string>
<key>xcode.syntax.identifier.constant</key>
<string>Times-Roman - 14.0</string>
<key>xcode.syntax.identifier.constant.system</key>
<string>Times-Roman - 14.0</string>
<key>xcode.syntax.identifier.function</key>
<string>Times-Roman - 14.0</string>
<key>xcode.syntax.identifier.function.system</key>
<string>Times-Roman - 14.0</string>
<key>xcode.syntax.identifier.macro</key>
<string>Times-Roman - 14.0</string>
<key>xcode.syntax.identifier.macro.system</key>
<string>Times-Roman - 14.0</string>
<key>xcode.syntax.identifier.type</key>
<string>Times-Roman - 14.0</string>
<key>xcode.syntax.identifier.type.system</key>
<string>Times-Roman - 14.0</string>
<key>xcode.syntax.identifier.variable</key>
<string>Times-Roman - 14.0</string>
<key>xcode.syntax.identifier.variable.system</key>
<string>Times-Roman - 14.0</string>
<key>xcode.syntax.keyword</key>
<string>Times-Roman - 14.0</string>
<key>xcode.syntax.number</key>
<string>Times-Roman - 14.0</string>
<key>xcode.syntax.plain</key>
<string>Times-Roman - 14.0</string>
<key>xcode.syntax.preprocessor</key>
<string>Times-Roman - 14.0</string>
<key>xcode.syntax.string</key>
<string>Times-Roman - 14.0</string>
<key>xcode.syntax.url</key>
<string>Times-Roman - 14.0</string>
</dict>
</dict>
</plist>

以上是关于Xcode 字体 设置-- Xcode family没有显示的字体的主要内容,如果未能解决你的问题,请参考以下文章

Xcode。西布。为文本元素设置默认字体

UITextView - 在 XCode 5 上设置字体不适用于 iOS 6

UITextView - 在 XCode 5 上设置字体不适用于 iOS 6

xcode自定义字体大小

如何使用 Xcode Storyboard 为不同的设备设置不同的字体大小?

Xcode 7 iOS9 字体不再被识别