新安装的字体不会出现在 Netbeans 中 [英] Newly installed fonts do not appear in Netbeans

查看:17
本文介绍了新安装的字体不会出现在 Netbeans 中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过下载新字体并双击 .ttf 文件并按左上角的安装"将新字体添加到我的 Netbeans 编辑器中.我可以毫无问题地安装字体.但是,当我重新加载 Netbeans 并选择新字体时,它没有出现在可用字体列表中.重新启动 Windows 没有帮助.以前有人遇到过这个问题吗?如果是这样,我们您可以修复它以及如何修复?

提前致谢.

我使用的是 Netbeans 10.

我正在尝试安装 Roboto Mono 和 Inconsolata,以下是下载链接:

注意事项:

  • 我不知道为什么需要执行此操作.我很确定我过去为 NetBeans 安装了其他字体,不需要手动将它们复制到 C:WindowsFonts.
  • 此问题并非针对这些特定字体的 NetBeans 10.0 所特有;它也存在于 NetBeans 8.2 中.
  • 不要使用 Windows 文件资源管理器复制字体,因为它以特殊方式处理 C:WindowsFonts.相反,从命令行使用 copy*.ttf 文件复制到 C:WindowsFonts:
  • 我不确定这是 NetBeans 问题还是 Windows 10 问题,但由于其他软件从用户目录中获取了新字体,这可能是 NetBeans 错误?

I am trying to add new fonts to my Netbeans editor by downloading them and double-clicking the .ttf files and pressing 'Install' on the upper left corner. I am able to install the fonts with no issues. However, when I reload Netbeans and go to select the new font, it does not appear on the list of available fonts. Restarting Windows doesn't help. Has anyone had this issue before? And if so, we you able to fix it and how?

Thanks in advance.

EDIT: I am using Netbeans 10.

EDIT2: I am trying to install Roboto Mono and Inconsolata, here are the links to the downloads:

https://fonts.google.com/specimen/Inconsolata

https://fonts.google.com/specimen/Roboto+Mono

Get back to me if you have any luck, thank you.

解决方案

Initially I had the same problem as you. After installing the new fonts and rebooting, those new fonts were not available in NetBeans 10.0, even though they were available in other applications such as Firefox and Notepad.

In my case, installing the *.ttf files resulted in them being installed in a user specific folder: C:UsersjohndoeAppDataLocalMicrosoftWindowsFonts.

However, after I copied (only) the *.ttf files for Inconsolata from that folder to C:WindowsFonts and rebooted again, the Inconsolata font was visible in NetBeans 10.0. Here is a screen shot showing the use of Inconsolata font:

Notes:

  • I don't know why this action was necessary. I'm pretty sure I have installed other fonts for NetBeans in the past that didn't require manually copying them to C:WindowsFonts.
  • This issue isn't specific to NetBeans 10.0 for those particular fonts; it also exists in NetBeans 8.2.
  • Don't use Windows File Explorer for copying the fonts since it treats C:WindowsFonts in a special way. Instead, copy the *.ttf files to C:WindowsFonts using copy from the command line:
  • I'm not sure whether this is a NetBeans issue or a Windows 10 issue, but since other software picked up the new fonts from the user directory perhaps this is a NetBeans bug?

这篇关于新安装的字体不会出现在 Netbeans 中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆