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

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

问题描述

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

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?

谢谢.

我正在使用Netbeans 10.

I am using Netbeans 10.

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

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.

推荐答案

最初,我遇到了与您相同的问题.安装新字体并重新启动后,这些新字体在NetBeans 10.0中不可用,即使在其他应用程序(例如Firefox和Notepad)中也可以使用.

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.

对于我来说,安装 *.ttf 文件导致将它们安装在用户特定的文件夹中:C:\Users\johndoe\AppData\Local\Microsoft\Windows\Fonts.

In my case, installing the *.ttf files resulted in them being installed in a user specific folder: C:\Users\johndoe\AppData\Local\Microsoft\Windows\Fonts.

但是,在我仅将 Inconsolata *.ttf 文件从该文件夹复制到 C:\ Windows \ Fonts 后,重新启动后, Inconsolata 字体在NetBeans 10.0中可见.这是显示使用 Inconsolata 字体的屏幕截图:

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

注意:

  • 我不知道为什么需要这样做.我敢肯定,过去我已经为NetBeans安装了其他字体,这些字体不需要手动将它们复制到C:\Windows\Fonts.
  • 对于这些特定字体,此问题并不特定于NetBeans 10.0;它仅适用于NetBeans 10.0.它也存在于NetBeans 8.2中.
  • 请勿使用Windows File Explorer复制字体,因为它以特殊方式处理C:\Windows\Fonts.而是从命令行使用 copy *.ttf 文件复制到C:\Windows\Fonts:
  • 我不确定这是NetBeans还是Windows 10问题,但是由于其他软件从用户目录中提取了新字体,也许这是NetBeans错误?
  • 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:\Windows\Fonts.
  • 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:\Windows\Fonts in a special way. Instead, copy the *.ttf files to C:\Windows\Fonts 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天全站免登陆