OpenArena Message Boards

OpenArena Contributions => Development => Topic started by: beast on September 12, 2007, 07:24:27 PM



Title: How do I create the .tga file for font1/font2 in OA
Post by: beast on September 12, 2007, 07:24:27 PM
I'm playing around with trying to get a quick version of localization implemented in OA and noticed that the font targa files (font1, font2) don't contain the entire character set. Is there a way to create those images and include the rest of the character set? Or does someone already have a copy that was created before? I looked thorough tr_font.c in renderer and it talks a little bit about what to do, but I'm kind of lost. Any help that could be given would be greatly appreciated.

Thanks...


Title: Re: How do I create the .tga file for font1/font2 in OA
Post by: iLeft.bye on September 12, 2007, 07:55:23 PM
build oa with freetype support
it generates font files from ttf file
it generates all 256 chars however I could not get the extended set to be viewed
http://www.quakesrc.org/forums/viewtopic.php?t=7753 good luck


Title: Re: How do I create the .tga file for font1/font2 in OA
Post by: beast on September 12, 2007, 11:29:58 PM
Thanks... I'll d/l q3font and give it a try...


Title: Re: How do I create the .tga file for font1/font2 in OA
Post by: dmn_clown on September 12, 2007, 11:44:25 PM
I looked thorough tr_font.c in renderer and it talks a little bit about what to do, but I'm kind of lost.

Which menu are you attempting to do this in?  If it is the base menu, you are looking at a lot of work that will end up discarded after the menu switch, eventually everything will use the missionpack menu which will be the easiest way to provide localization (and a lot of other things).


Title: Re: How do I create the .tga file for font1/font2 in OA
Post by: beast on September 12, 2007, 11:53:41 PM
Which menu are you attempting to do this in?  If it is the base menu, you are looking at a lot of work that will end up discarded after the menu switch, eventually everything will use the missionpack menu which will be the easiest way to provide localization (and a lot of other things).
Yeah. I know the missionpack will change everything. I'm just playing around trying different things out to get more familiar with the code.

Doesn't the missionpack menu code use the same font system, though? If so, I would still need images that have the full character set for localization (I think, anyway.  IRNOOB...:=)

Thanks...


Title: Re: How do I create the .tga file for font1/font2 in OA
Post by: beast on September 13, 2007, 12:25:35 AM
I downloaded q3font and tried it. It seems to create all of the files, but when I open the .tga files in the GIMP, all I see is a big white square. Any idea what I am doing wrong?


Title: Re: How do I create the .tga file for font1/font2 in OA
Post by: iLeft.bye on September 13, 2007, 01:35:53 AM
http://icculus.org/twilight/darkplaces/files/lhtgatools20070412.zip


Title: Re: How do I create the .tga file for font1/font2 in OA
Post by: beast on September 13, 2007, 02:18:17 AM
Thanks... That made them show up in the GIMP. Adobe Photoshop Elements still didn't like the file, but that's okay. I just needed it to show up somewhere... :-)

Now the next question... Does anyone know what font and sizes were used when font1_prop.tga and font2_prop.tga were created?

Thanks...


Title: Re: How do I create the .tga file for font1/font2 in OA
Post by: dmn_clown on September 13, 2007, 02:45:28 PM
Yeah. I know the missionpack will change everything. I'm just playing around trying different things out to get more familiar with the code.

I'm just trying to save you some work and possible heartbreak.

Quote
I downloaded q3font and tried it. It seems to create all of the files, but when I open the .tga files in the GIMP, all I see is a big white square. Any idea what I am doing wrong?

Nothing, that is how the GIMP displays alpha channels.  If you look under the channel's tab you'll sorta see the full image, not sure if they fixed this in 2.4 but I doubt it, that is how X also displays alpha channels and the GIMP is still a GNU/Linux app.  You might want to upgrade to the latest release client, if possible (requires > gtk2.10), as 2.4 is a vast improvement.