This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
cn:orx:tutorials:community:fonttool [2017/05/29 21:50 (7 years ago)] – external edit 127.0.0.1 | en: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. | ||
+ | </ | ||
+ | |||
+ | ===== Usage ===== | ||
+ | |||
+ | orxFontGen.exe -s "font size" -f "font file name" -o " | ||
+ | |||
+ | 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. | ||
+ | </ | ||
+ | |||
+ | 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 | ||
+ | </ | ||
+ | |||
+ | 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 " | orxFontGen.exe -s " |