Netbeans 通过 X11 字体转发问题
我正在尝试通过 ssh 将我的 IDE Netbeans 转发到 Windows 桌面上的 Xming 服务器。 我能够启动并运行 Netbeans,但字体看起来很糟糕,因为它们没有进行抗锯齿处理。 我已在此处上传了屏幕截图。
如果我在 Linux 机器上从 Gnome 启动 Netbeans,字体看起来很好,所以肯定是 Xming 或 Windows 字体渲染的问题。 有谁知道如何让 Xming 显示抗锯齿字体吗?
更新:
我刚刚在主机上设置了一个字体服务器,但字体在客户端仍然显示像素化。
I'm trying to forward my IDE, Netbeans, over ssh to the Xming server on my Windows Desktop. I'm able to get Netbeans to launch and run, but the fonts look terrible because they aren't being anti-aliased. I've uploaded a screenshot here.
If I launch Netbeans from Gnome on the linux box itself, the fonts look fine, so it must be a problem with Xming or the Windows font rendering. Does anyone have any ideas about how to get Xming to display the fonts anti-aliased?
Update:
I just setup a font server on the host, but the fonts still appear pixelated on the client side.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我最终在启动器脚本中设置了一些 netbeans 命令行选项,以强制消除锯齿并强制进行子像素字体渲染。 这解决了这个问题。
更新:添加步骤
我将 /etc/netbeans.conf 下的 netbeans_default_options 设置为:
I ended up setting some of the netbeans command line options in the launcher script to force anti aliasing and force subpixel font rendering. This fixed the issue.
Update: Added Steps
I set the netbeans_default_options under /etc/netbeans.conf to read:
Java 在 Linux 上有点奇怪,它如何决定是否抗锯齿。
它似乎检测 KDE 或 GNOME 是否正在运行,如果没有,则决定不打扰。
如果您需要其他解决方案,请尝试在启动 netbeans 之前确保“gnome-settings-daemon”正在运行。
Java is a bit weird on Linux as to how it decides whether to anti-alias or not.
It seems to detect if KDE or GNOME are running, and if not, decides not to bother.
If you want another solution, try making sure that "gnome-settings-daemon" is running before launching netbeans.
正如此博客中所述,您可以激活上一个答案系统中提到的选项-广泛适用于添加到您的配置文件中的所有摆动应用
。
As stated in this blog, you can activate the option mentioned in the previous answer system-wide for all swing applications adding
to your profile.
我使用Mint Linux,这里下面的配置就可以了。
正确的形式是这样的:
I use Mint Linux and the configuration below is ok here.
The correct form is this:
允许 Linux 计算机作为 X11 字体服务器,并告诉您的 Xming 会话使用 Linux 计算机作为 X11 字体服务器。
Allow the Linux machine to be an X11 fontserver and tell your Xming session to use the Linux machine as an X11 font server.