User Tools

Site Tools


en:tutorials:text-fonts:fonttool

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
cn:orx:tutorials:community:fonttool [2017/05/29 21:50 (7 years ago)] – external edit 127.0.0.1en:tutorials:text-fonts:fonttool [2020/08/19 20:12 (4 years ago)] (current) – ↷ Page moved from cn:orx:tutorials:community:fonttool to en:tutorials:text-fonts:fonttool sausage
Line 1: Line 1:
 +====== Font image generation tool ======
 +
 +<WRAP center round box 60%>
 +Originally in Chinese, this translation has been added. This is a good guide to using the font generator tool.
 +</WRAP>
 +
 +===== Usage =====
 +
 +    orxFontGen.exe -s "font size" -f "font file name" -o "Generate object name" -t "all the text entered" 
 +
 +I first save the above text as a file, named toolHistory.txt here (note that the saved text must be encoded using utf-8, which can be done with tools such as notepad ++ or ultraEditor. 
 +
 +Copy it to the directory where the tool is located, then copy the font file msyh.ttf (from the windows / fonts directory) to the directory where the tool is located. I want to name the generated object msyhFont, so I used the following command Executive Tools: 
 +
 +    orxFontGen.exe -s 32 -f msyh.ttf -o msyhFont -t toolHistory.txt
 +
 +Then we get two things: one of them, a 4 channel tga file. Second, a configuration similar to Orx below. 
 +
 +<code ini>
 +[msyhFont] 
 +CharacterList = "() / 27IOU_abcdefimnoprstuwxy.
 +</code>
 +
 +The United States can apply to the United States since the test was able to make mistakes despite the words to be allowed to speak the language of the language:
 +
 +<code ini>
 +CharacterSize = (32, 32, 0) 
 +Texture = msyhFont.tga
 +</code>
 +
 +Orx iPhone version is not supported to load tga files, so you need to manually convert the file to png (PS, gimp or similar graphics tools ).
 +
 ======字体图片生成工具====== ======字体图片生成工具======
 orxFontGen.exe -s "字体大小" -f "字体文件名" -o “生成对象名" -t "输入的所有文字" orxFontGen.exe -s "字体大小" -f "字体文件名" -o “生成对象名" -t "输入的所有文字"
en/tutorials/text-fonts/fonttool.1496119845.txt.gz · Last modified: 2017/05/30 00:50 (7 years ago) (external edit)