简体   繁体   English

未安装自定义字体 - Xcode 11 beta

[英]Custom font none installed - Xcode 11 beta

After installing the new beta xCode.安装新测试版 xCode 后。 The custom font set in an existing project does not work.现有项目中设置的自定义字体不起作用。 When opening the storyboard file, it says as shown in image below打开 storyboard 文件时,如下图所示

在此处输入图像描述

After clocking ok, I'm not able to choose custom font from the attribute inspector.时钟确定后,我无法从属性检查器中选择自定义字体。

在此处输入图像描述

It was working fine with xcode 10.2.它在 xcode 10.2 上运行良好。 This issue occurs only on Xcode 11 beta此问题仅在 Xcode 11 beta 上出现

I've also had this issue. 我也有这个问题。

I had to change the text style to attributed, pick the font, then change back to plain. 我必须将文本样式更改为属性,选择字体,然后再更改回纯文本。

切换系统语言后,我遇到了同样的问题,此问题已通过重新启动系统然后重新启动Xcode来解决。

2022 Update! 2022更新!

You don't need to restart your system.您无需重新启动系统。 Just perform these simple steps to solve this issue.只需执行这些简单的步骤即可解决此问题。

  1. Open Spotlight (Cmd + space) and type Font Book打开 Spotlight(Cmd + 空格)并输入Font Book
  2. Drag-Drop your font into the Font Book.将您的字体拖放到字体册中。
  3. Restart Xcode and it'll work fine.重启 Xcode 就可以了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM