Article reprinted from: http://www.unity.5helpyou.com/3211.html
Game production, often need to use a variety of fancy text or numbers, and font library often does not achieve the effect we need, so a picture is needed to replace the text function. Ugui the use of WordArt is also relatively simple, below we will introduce the next Ugui art font production and use, this article uses Bmfont as a font making tool, simply tell how to make art fonts:
1. Let the art submit the text after chunking:
2. Open the Bmfont tool and locate Image Manager (Edit->open Image Manager):
3. Import the font image and bind it with the text ID, such as:
Click 1 position, import a single picture, select a specific text image, and enter the text corresponding to the ID (ID can put the mouse on the text, in the lower right corner to view), click OK to import a text.
4. Finally export the picture, the specific export steps can be in Baidu search, here do a brief introduction:
Select the export settings in exports, modify the size of the exported image, bit depth, picture format and so on, click Save Bitmap Font as to create the art library,
After the build there is a fnt file and more than one text image:
This is the data we finally imported into unity.
4. Place the above data in Unity's resource directory, right-click on the Fnt file, and in the right-click menu Choose Batchcreateartistfont (described later) to generate the relevant font file:
Number.fontsetting is the font file we can get in Ugui.
5. Create a text control under the canvas, assign the font file to the font of text, and modify the font's material to sprite-default, otherwise it may not appear normal.
The effect is as follows:
6, the text used to generate the font of the batch processing tool to download:
UGUIFontEditor.txt (Download 3864)
Links: http://pan.baidu.com/s/1jG5pZUm
Extract code: 8BSI
All right, this unity3d tutorial about Ugui Art font production and use to this end, the next we farewell!
The creation and use of-ugui art font in Unity tutorial