java 更改字体 System.out.println 的大小
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/27443510/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Change size of font System.out.println
提问by Pedro Piloto
Can you tell me how to increase the size of the font using System.out.println in java.
你能告诉我如何在 java 中使用 System.out.println 增加字体的大小吗?
回答by laalto
There is no concept of "font" with System.out
.
没有“字体”的概念System.out
。
Edit the console font settings for whatever application you're using as an output console.
编辑您用作输出控制台的任何应用程序的控制台字体设置。
回答by Guan Chuan
You cannot do this through coding as in the font size is based on your console. I assumed you use eclipse to code your java code. So, you can change eclipse console font size here. General > Appearance > Colors and Fonts
您不能通过编码来做到这一点,因为字体大小基于您的控制台。我假设您使用 eclipse 来编写您的 java 代码。因此,您可以在此处更改 Eclipse 控制台字体大小。常规 > 外观 > 颜色和字体
Which you can get the source here. http://help.eclipse.org/luna/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Ftasks%2Ftasks-consoleAppearance.htm
你可以在这里获得源代码。 http://help.eclipse.org/luna/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Ftasks%2Ftasks-consoleAppearance.htm
回答by John Mikic
There is a way to change fonts for Java output. See details here:
有一种方法可以更改 Java 输出的字体。在此处查看详细信息:
http://mrhaki.blogspot.com/2008/06/change-font-in-output-window-in.html
http://mrhaki.blogspot.com/2008/06/change-font-in-output-window-in.html
回答by Andrey E
This is a console output. Unfortunately there is no way to do it.
这是控制台输出。不幸的是,没有办法做到这一点。