Jump to content
Sign in to follow this  
st_dux

FontToTGA

Recommended Posts

I am trying to import a custom font that will allow me to use special characters required for Vietnamese text. I have successfully generated the TGA and FXY files necessary for my font using FontToTGA; however, I have no idea what to do with these files now. How are fonts installed?

---------- Post added at 12:22 PM ---------- Previous post was at 11:35 AM ----------

Figured it out.

Fonts must go into an addon and added to the CfgFontFamilies config entry. Thanks to BlenderRus for making the Cyrillic Font Support addon, which is where I was able to learn this. An example config entry is shown below:

class CfgFontFamilies {
class ArialPlus
{
	fonts[] = {"\myAddon\Fonts\ArialPlus\ArialPlus06","\myAddon\Fonts\ArialPlus\ArialPlus07","\myAddon\Fonts\ArialPlus\ArialPlus08","\myAddon\Fonts\ArialPlus\ArialPlus09","\myAddon\Fonts\ArialPlus\ArialPlus10","\myAddon\Fonts\ArialPlus\ArialPlus11"};
	spaceWidth = 0.7;
	spacing = 0.065;
};
};

Edited by ST_Dux

Share this post


Link to post
Share on other sites

Just as note, steps are:

1 - Generate FXY and TGA files with FontToTga

2 - Convert TGA to PAA with ImageToPAA

3 - Write the configuration file

4 - Pack it and test ;)

I will add soon a sample of font addon in Arma 3 Tools ;)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×