Difference between revisions of "Font Tutorial"
(Created page with '=Creating Localized Fonts= ==Base== First, you need base fonts to make yours. I created fonts imported from Unreal with grid. It's SmallFont, MedFont, BigFont, LargeFont and Wh…') |
|||
Line 16: | Line 16: | ||
<code> | <code> | ||
Font Import File=texture0.pcx PACKAGE="Engine" Name=SmallFont<br> | Font Import File=texture0.pcx PACKAGE="Engine" Name=SmallFont<br> | ||
Font Import File=texture1.pcx PACKAGE="Engine" Name=MedFont | Font Import File=texture1.pcx PACKAGE="Engine" Name=MedFont<br> | ||
Font Import File=texture2.pcx PACKAGE="Engine" Name=LargeFont<br> | |||
Font Import File=texture2.pcx PACKAGE="Engine" Name=LargeFont | Font Import File=texture3.pcx PACKAGE="Engine" Name=BigFont<br> | ||
OBJ SAVEPACKAGE PACKAGE="Engine" FILE="Engine.u"<br> | |||
Font Import File=texture3.pcx PACKAGE="Engine" Name=BigFont | Font Import File=texture7.pcx PACKAGE="UnrealShare" Name=WhiteFont<br> | ||
OBJ SAVEPACKAGE PACKAGE="Engine" FILE="Engine.u" | |||
Font Import File=texture7.pcx PACKAGE="UnrealShare" Name=WhiteFont | |||
OBJ SAVEPACKAGE PACKAGE="UnrealShare" FILE="UnrealShare.u" | OBJ SAVEPACKAGE PACKAGE="UnrealShare" FILE="UnrealShare.u" | ||
</code> | </code> |
Revision as of 19:27, 4 November 2009
Creating Localized Fonts
Base
First, you need base fonts to make yours.
I created fonts imported from Unreal with grid.
It's SmallFont, MedFont, BigFont, LargeFont and WhiteFont
TODO:Insert link to font textures
Editing
You need to explore which position corresponds each character from your charset. And just substitute glyph with your symbol's glyph. But obey order!
Importing
Save this text in text file and place it into your System/ directory.
Remember to change it for your porposes.
Font Import File=texture0.pcx PACKAGE="Engine" Name=SmallFont
Font Import File=texture1.pcx PACKAGE="Engine" Name=MedFont
Font Import File=texture2.pcx PACKAGE="Engine" Name=LargeFont
Font Import File=texture3.pcx PACKAGE="Engine" Name=BigFont
OBJ SAVEPACKAGE PACKAGE="Engine" FILE="Engine.u"
Font Import File=texture7.pcx PACKAGE="UnrealShare" Name=WhiteFont
OBJ SAVEPACKAGE PACKAGE="UnrealShare" FILE="UnrealShare.u"
Known Problems
LargeFont(and BigFont?) doesn't work when language is not int.
Importing in that way is incompitable with network game. I found a way how to use fonts(exept WhiteFont) and leave game compitable with net. TODO: add workaround