FontToTga: Difference between revisions
Jump to navigation
Jump to search
m (Added a new category) |
Lou Montana (talk | contribs) m (Text replacement - "{{ExternalLink|" to "{{Link|") |
||
(16 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
{{Tool | {{Tool | ||
|AUTHOR= | |AUTHOR= | ||
Line 11: | Line 10: | ||
|DOWNLOAD= | |DOWNLOAD= | ||
Part of Arma 3 Tools package on Steam | {{Link|link= http://store.steampowered.com/app/233800/|text= Part of Arma 3 Tools package on Steam}} | ||
|DESCRIPTION= | |DESCRIPTION= | ||
This tool helps you to get your favourite TrueType font (.ttf) into Arma 3. It creates the needed .tga texture files containing the characters and the .fxy file, which tells the engine where the characters are on the texture. | This tool helps you to get your favourite TrueType font (.ttf) into Arma 3. It creates the needed .tga texture files containing the characters and the .fxy file, which tells the engine where the characters are on the texture.<br> | ||
FontToTgaGUI will generate the given font with the following sizes: 6 to 31, 34 and 35, 37 and 46. | |||
|COMMAND= | |COMMAND= | ||
FontToTga.exe options -size=XX fontName [destination] | FontToTga.exe {options} -size=XX fontName [destination]<br> | ||
FontToTgaGUI.exe | |||
|OPTIONS= | |OPTIONS= | ||
'''fontName''' is the name of a font that is installed in C:\Windows\Fonts (not the name or path of .ttf file) | '''fontName''' is the name of a font that is installed in C:\Windows\Fonts (not the name or path of .ttf file) | ||
* -size=xx [is required. size in points pt.] | |||
* -bold | * -bold | ||
* -italic | * -italic | ||
* -maxTexSize=<size> (valid values are 128, 256, 512, 1024, 2048) | |||
* -cfg=<config file> Custom config file definition | |||
|EXAMPLE= | |||
FontToTga.exe -size=8 -bold "Times New Roman" myTimesRomanFont | |||
|NOTES= | |NOTES= | ||
Line 32: | Line 39: | ||
|SEEALSO= | |SEEALSO= | ||
[[FXY File Format]], [[ImageToPAA]] | |||
}} | }} | ||
Line 38: | Line 46: | ||
You can individually use the FontToTga command line or use the provided generateFontFamily.bat file instead as a base. In the example generateFontFamily.bat "Arial" is the fontName and the following number the size of the font to be created. So if you execute the given bat file, six fonts should be created into the Fonts folder. You can define which characters are created by editing FontToTga.cfg. | You can individually use the FontToTga command line or use the provided generateFontFamily.bat file instead as a base. In the example generateFontFamily.bat "Arial" is the fontName and the following number the size of the font to be created. So if you execute the given bat file, six fonts should be created into the Fonts folder. You can define which characters are created by editing FontToTga.cfg. | ||
'''Error Handling:''' | |||
* FontToTga will not generate the font if the destination folder does not exist. | |||
* If your '''fontName''' is incorrect, an Arial character set is generated by default. | |||
{{GameCategory|arma3|Official Tools}} |
Latest revision as of 16:23, 4 January 2023
Basic information
- Author:
- Bohemia Interactive
- Compatibility:
- Arma 3
- Download:
- Part of Arma 3 Tools package on Steam
Description
- Description:
- This tool helps you to get your favourite TrueType font (.ttf) into Arma 3. It creates the needed .tga texture files containing the characters and the .fxy file, which tells the engine where the characters are on the texture.
FontToTgaGUI will generate the given font with the following sizes: 6 to 31, 34 and 35, 37 and 46. - Notes:
- This readme was originally not written by BI staff but from members of the CWR˛ Mod team to provide you some help to get the tool working.
Usage
- Line call:
- FontToTga.exe {options} -size=XX fontName [destination]
FontToTgaGUI.exe - Options:
- fontName is the name of a font that is installed in C:\Windows\Fonts (not the name or path of .ttf file)
- -size=xx [is required. size in points pt.]
- -bold
- -italic
- -maxTexSize=<size> (valid values are 128, 256, 512, 1024, 2048)
- -cfg=<config file> Custom config file definition
- Examples:
- FontToTga.exe -size=8 -bold "Times New Roman" myTimesRomanFont
Licenses
- Licensing:
- Bohemia Interactive End User License Agreement
- See also:
- FXY File Format, ImageToPAA
Additional information
You can individually use the FontToTga command line or use the provided generateFontFamily.bat file instead as a base. In the example generateFontFamily.bat "Arial" is the fontName and the following number the size of the font to be created. So if you execute the given bat file, six fonts should be created into the Fonts folder. You can define which characters are created by editing FontToTga.cfg.
Error Handling:
- FontToTga will not generate the font if the destination folder does not exist.
- If your fontName is incorrect, an Arial character set is generated by default.