Java Unicode Fonts

I am developing a java game and I need characters like monsters and doors, etc. I am trying to include them using characters and unicode. However, some characters, such as the key, '\ u26BF', do not display properly in the game terminal, but rather as a field. Do I need to import some special fonts or how else can I solve this problem?

+6
source share
2 answers

GNU Unifont is reported as containing this character. Since it is subject to the GNU Public License, it is not subject to any license.

Homepage: http://unifoundry.com/unifont.html

It has a TrueType that should work with Java.

+2
source

Like the people already mentioned in the comment sections, you will have to use a different font containing these special characters.

The font you are using does not seem to support these characters, you can download any other font that contains these characters. The character 'u26BF' is a square box in some default fonts ( source ).

You can find different fonts and even try them on DaFont and, as @SubOptimal warned, check the licenses and download and use it before you.

+1
source

Source: https://habr.com/ru/post/980371/


All Articles