如何在NetBeans Windows 10中呈现埃塞俄比亚的阿姆哈拉字符 [英] How to render Ethiopian amharic character in netbeans windows 10

查看:86
本文介绍了如何在NetBeans Windows 10中呈现埃塞俄比亚的阿姆哈拉字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在netbeans ide中书写和打印amharic字符时遇到问题,当我尝试在系统上打印时,netbeans ide无法正确显示它们,而是显示框,有人可以帮助我吗? 语言代码为"am",国家/地区为ET(ETHIOPIA).谢谢

I have a problem on writing and printing out amharic character in netbeans ide, when I try to print out on the system the netbeans ide doesn't display them correctly instead it displays boxs, any one can help me pls? The language code is 'am' and country is ET (ETHIOPIA).THANK YOU

推荐答案

NetBeans在其编辑器窗口和 Output 窗口中需要一种支持Amharic的字体.我尝试了几种在NetBeans中广泛使用的字体,但是(令人惊讶的是)它们都将Amharic字符呈现为空矩形,因此我发现了一种明确支持Amharic的字体:

NetBeans needs a font that supports Amharic in its editor window and Output window. I tried a few of the widely used fonts in NetBeans but (surprisingly) they all rendered Amharic characters as empty rectangles, so I found one that explicitly supports Amharic: Abyssinica SIL

我将该字体下载为EXE文件(对于Linux使用ZIP文件)并运行以在Windows中安装该字体.然后,我重新启动了NetBeans,并将其默认字体更改为 Abyssinica SIL :

I downloaded that font as an EXE file (use the ZIP file for Linux) and ran it to install the font in Windows. Then I restarted NetBeans and changed its default font to Abyssinica SIL:

  • 工具菜单中选择选项,然后单击字体和内容;颜色图标.
  • 语法选项卡上,单击 Font 字段右侧的省略号(...)按钮,然后选择 Abyssinica SIL 字体您刚安装的计算机,然后单击确定.
  • NetBeans编辑器将立即使用该字体,并在编辑器窗口中正确显示Amharic文本.
  • Select Options from the Tools menu and click the Fonts & Colors icon.
  • On the Syntax tab click the ellipsis (...) button to the right of the Font field and choose the Abyssinica SIL font you just installed, and click OK.
  • The NetBeans editor will use that font immediately, and correctly display Amharic text in the editor window.

但是,输出窗口中的Amharic文本仍将呈现为空白矩形.要解决此问题,请执行以下操作:

However, Amharic text in the Output window will still be rendered as empty rectangles. To fix that:

  • 下载Abyssinica SIL的 ZIP文件.
  • 在NetBeans 输出窗口中,右键单击并从弹出菜单中选择设置... ,以打开 Options 窗口,然后单击杂项" 图标,然后单击输出标签.
  • 单击导入... 按钮,单击浏览... 按钮,然后选择刚刚下载的ZIP文件: AbyssinicaSIL-1.500.zip .当您单击确定关闭选择要导入的选项窗口时,您会收到可怕的警告:"导入可能会不可逆地覆盖您的当前设置... ",但点击继续. NetBeans将重新启动.
  • 重新启动后,返回到导入ZIP文件的 Options 窗口,单击 Miscellaneous 图标,然后单击 Output 标签.单击字体字段右侧的省略号(...)按钮,然后选择刚安装的 Abyssinica SIL 字体,然后单击确定.阿姆哈拉文字现在将在输出窗口中正确呈现.
  • Download the ZIP file for Abyssinica SIL.
  • In the NetBeans Ouput window right click and select Settings... from the popup menu to open the Options window, click the Miscellaneous icon, and then click the Output tab.
  • Click the Import... button, click the Browse... button and choose the ZIP file you just downloaded: AbyssinicaSIL-1.500.zip. When you click OK to close the Select Options to import window you'll get a scary warning "Import may irreversibly overwrite your current settings..." but click Yes to continue. NetBeans will restart.
  • After the restart go back to the Options window where you imported the ZIP file, click the Miscellaneous icon, and then click the Output tab. Click the ellipsis (...) button to the right of the Font field and choose the Abyssinica SIL font you just installed and click OK. Amharic text will now render correctly in the Output window.

这是一个简单的程序,其输出显示其工作原理:

Here's a simple program and its output to show it works :

注意:

  • 无需指定国家或语言来解决此问题.但是,从命令提示符窗口运行该应用程序仍会将Amharic渲染为空矩形,并且无法将字体更改为 Abyssinica SIL .我怀疑该解决方案可能涉及在Windows中适当设置语言环境.
  • Abyssinica SIL 不是等宽字体,因此仅在需要在NetBeans编辑器中输入Amharic文本时才将其设置为NetBeans字体. (我敢肯定有支持Amharic的等宽字体-我刚刚抓到了我发现的第一个字体.)
  • 我还尝试了在Eclipse和Intellij IDEA中运行该应用程序而未进行任何配置更改的情况.在这两种情况下,Amharic文本都可以在编辑器中正确呈现.输出也可以在Eclipse中正确呈现,但是在Intellij IDEA中可以显示为空白矩形.如果您大量使用Amharic文本,则可能要考虑切换到Eclipse.
  • There's no need to specify country or language to resolve this. However, running the app from the Command Prompt window still renders Amharic as empty rectangles, and the font cannot be changed to Abyssinica SIL. I suspect the solution for that may involve setting the locale appropriately in Windows.
  • Abyssinica SIL is not a mono-spaced font so only set it as the NetBeans font if you need to enter Amharic text in the NetBeans editor. (I'm sure there are mono-spaced fonts that support Amharic - I just grabbed the first one I found.)
  • I also tried running the app in Eclipse and Intellij IDEA without any configuration changes. In both cases the Amharic text rendered correctly in the editor. The output also rendered correctly in Eclipse, but as empty rectangles in Intellij IDEA. If you use Amharic text heavily you may want to consider switching to Eclipse.

这篇关于如何在NetBeans Windows 10中呈现埃塞俄比亚的阿姆哈拉字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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