简体   繁体   English

如何在 java 中使用命令行字体?

[英]How do I use the command line font in java?

I want to make a game with graphics similar to Dwarf Fortress, but I can't find out how to set the font of my game to the standard windows cmd line font.我想制作一个图形类似于矮人要塞的游戏,但我不知道如何将我的游戏字体设置为标准 windows cmd 行字体。 I believe the font is called Terminal, but because it's a bitmap font java doesnt see it...我相信字体被称为终端,但因为它是 bitmap 字体 java 没有看到它......

Thanks in advance.提前致谢。

The font is Lucida Console, I believe.我相信字体是 Lucida Console。

In Windows 10, if you right click terminal > settings > font, you will see it can be only Lucida Console or Consolas.在 Windows 10 中,如果您右键单击终端 > 设置 > 字体,您将看到它只能是 Lucida Console 或 Consolas。 I belive by default it is Consolas.我相信默认情况下它是Consolas。

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

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