BMFont font maker and Unity conversion font project (BMFontForUnity) download address :
BMFontForUnity makes artistic fonts - Unity3D document class resources - CSDN download
1. Make word art
First prepare the digital picture of 0-9
After BMFont is installed, open the bitmap font creation tool, which looks like this:
After opening it looks like this:
Then click Image -> Import image, and import the images you want to make into bitmap fonts in turn.
Note this:
This Id fills in the ASCII of the number you imported, and I imported the number "0", so I fill in 48.
The ID corresponding to each number can be prompted by placing the mouse on the upper and lower right corner of the letter.
Whenever you successfully import a number, there will be a small lighted dot in the lower right corner of the corresponding number box in the character panel behind it.
Then you can do the same operation one by one, and set the letters or numbers you need on the corresponding pictures
After setting, the next step is to export.
Before exporting, you need to set some parameters
After setting, check if all are displayed
output after setting
After setting the path and giving the name, you will get two files:
This completes our bitmap font. Next, let's apply this image font to the Text control of UGUI.
2. Apply fonts in Unity
Import the two files just obtained into the appropriate directory of unity.
Import the downloaded BMFontToUnity.unitypackage package into Unity
After importing, import the two files just output from BMFont into Unity
After clicking, it will pop up:
After clicking import, there are two more files, one shader and one font file.
At this point, it has actually been completed. Next, create a Text to test the font.
you're done