Hello all,
I've tried to import a custom font from a PCX file into Unreal Editor, and it appears as though it works (the texture shows in the script package), but when I try to use it on HUD the font does not appear or is invisible. I've actually tried exporting Unreal 1's LargeFont (the green one) and re-import it as a different name and package and I get the same result. Does anyone know why this occurs? Are there certain guidelines one must follow to properly import a font that I'm not aware of?
UScript and Font Factory
4 posts •
Page 1 of 1
- xortion
- Skaarj Scout
- Posts: 15
- Joined: 26 Oct 2012, 07:11
Subject: UScript and Font Factory
Post Posted: 18 Aug 2013, 01:01
- ebd
- Trustee Member
- Posts: 441
- Joined: 05 Apr 2008, 19:08
- Contact:
Subject: Re: UScript and Font Factory
Post Posted: 18 Aug 2013, 04:28
Unreal is very particular when it comes to importing textures for fonts. The .pcx's palette must be set up carefully and the image itself has to be set up correctly. There needs to be a rectangular outline of the first color in the palette, while the last color of the palette is used for masking). The actual colors you use for masking and outlining characters do not matter, as long as they are last and first in the palette respectively. Also be sure you are importing the fonts with the correct exec directive (if importing through script). (You may need to swap first and last depending on which program you are using to edit images)
Example of image and palette setup:
This page has a lot of useful information.
http://www.oldunreal.com/wiki/index.php ... t_Tutorial
Code: Select all
#exec Font Import File=Textures\MyFont.pcx Name=MyFont
Example of image and palette setup:
This page has a lot of useful information.
http://www.oldunreal.com/wiki/index.php ... t_Tutorial
- Z-enzyme
- White Tusk
- Posts: 2136
- Joined: 13 Nov 2007, 20:01
Subject: Re: UScript and Font Factory
Post Posted: 20 Aug 2013, 10:07
What about multile font textures? When I want to import a really big font I need to split it into parts. How to do that?
Is it possible to just throw a 4096x2048 pcx texture?
Is it possible to just throw a 4096x2048 pcx texture?
- ebd
- Trustee Member
- Posts: 441
- Joined: 05 Apr 2008, 19:08
- Contact:
Subject: Re: UScript and Font Factory
Post Posted: 20 Aug 2013, 13:00
I would assume there is a way to split a font into multiple textures, since that is what the true type font importer does (maybe examine the textures it produces?), but I honestly don't know how off hand. A really big texture should work well enough though.Z-enzyme wrote:What about multile font textures? When I want to import a really big font I need to split it into parts. How to do that?
Is it possible to just throw a 4096x2048 pcx texture?
4 posts •
Page 1 of 1
Who is online
Users browsing this forum: No registered users and 34 guests