Today, I encountered the problem of generating ogre font code_points when I made ogre Chinese display. Let's take a look at the definition of the simhei I used.
Simhei
{
Type TrueType
Source simhei. TTF
Size 16
Resolution 96
Code_points 33-166 24403-24403 21069-21069 24103-24103 36895-36895 29575-29575 24179-24179 22343-22343 26368-26368 39640-39640 20302-20302 19977-19977 35282-35282 24418-24418 25968-25968 37327-37327 25209-25209 27425-27425
}
The font code_points is the Unicode character encoding you want to use. For example, the encoding of the word 'stop' is expressed as 5f53 in hexadecimal notation and 24403 in hexadecimal notation, the ogre font definition uses a 10-in-10 notation. According to the description of the Ogre font definition document, you can refer to http://www.chi2ko.com/tool/cjk.htm?each character must be described as 24403-24403.
In order to automatically generate the Ogre font code_points, if you fail to find the appropriate software after turning around the Internet, you can do it yourself. The software interface is as follows:
In the software, the separator line and above are single-character conversion, which correspond to the encoding search function of the above-mentioned website. The separator line below is a string conversion, which can be used to generate the code_points format required by the Ogre font.
Click here to download. Note: The software requires the. net2.0 framework.
Reprinted please indicate the source:
Author: gogoplayer
E-mail: gogoplayer@163.com
QQ: 78939328
Http://www.gogoplayer.com.cn/