简体   繁体   中英

How to print larger unicode characters

Essentially im creating a blackjack game and im using the unicode cards for my program but the output for the cards is just to small so i was wondering if there was any way to make them bigger like by pringing 1/4 of the card four times any help is appreciated.

🃁

Basically, when you write characters to a console (such as CMD) they are displayed using the font and character size selected by the user.

The user can typically change the font and character via the console tool's settings, etcetera. However, there is nothing that a pure Java application 1 can do to change the console's character size, and certainly not on a per-character basis.

If your game is going to output those characters, you should probably be using an GUI or a web browser to display the output.


1 - If you are willing to write native code and call it from Java via JNI or JNA, it is apparently possible to change the current console's character size; see Changing Command Prompt Text Size C++ . Note that this only works on MS Windows.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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