Adding custom font

Everything about Modding TE2013, from new courts to the modifications of the player & tournament bases (and including all the bugs they may be creating ! ;) )
Forum rules
Speak English in 1st page of topics, and don't hijack topics, troll, use profanities nor insults

Adding custom font

Postby delpetra » 16 Aug 2014, 13:16

I am trying to replace the default hugechars.tga with Myriad bold, the font used by WTA for their scoreboard. I used the LMNOpc bitmap font builder from this post but when I replace hugechars.tga with my custom font all the text looks like this. I've tried exporting the file as 8/24/32 bit TGAs, changing the texture size, enabling and disabling font smoothing, and changing the texture origin, but nothing fixes this.
I upload matches on YouTube and post GIFs on Tumblr
User avatar
delpetra
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 86
Gaming Since: 21 Jun 2013, 21:54

Re: Adding custom font

Postby antimouse » 16 Aug 2014, 16:37

Try Codehead's Bitmap Font Generator. It was suggested to me by Rounders sometime ago.
My courts here: topic29-15848.php
antimouse
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 541
Gaming Since: 06 Sep 2013, 01:05

Re: Adding custom font

Postby delpetra » 16 Aug 2014, 17:23

antimouse wrote:Try Codehead's Bitmap Font Generator. It was suggested to me by Rounders sometime ago.

Do you know the settings I need to get it in the same format as hugechars.tga?
I upload matches on YouTube and post GIFs on Tumblr
User avatar
delpetra
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 86
Gaming Since: 21 Jun 2013, 21:54

Re: Adding custom font

Postby manutoo » 17 Aug 2014, 04:02

reshonda,
open hugechars.tga and check its alpha channel to see how it's done.
ManuTOO
== Mana Games ==

>> I don't answer Private Message, except if it's really a _Private_ topic <<
User avatar
manutoo
Game Author
 
Messages: 18689
Gaming Since: 24 Jan 2004, 15:38
Location: France

Re: Adding custom font

Postby delpetra » 17 Aug 2014, 18:06

Thank you, I've fixed that problem but now the text appears to be really spaced out. Here's a screenshot of the issue and my settings in the bitmap font generator.

Never mind, I've fixed it by following what manutoo said in this thread. Make sure that the black background in all channels is actually pure black! Thanks for your help manutoo. :D
One final thing though, is there any way to make the text a little smoother on the scoreboard (screenshot)? Increasing the texture size doesn't seem to work, and font smoothing is already turned on. Here is my hugechars.tga file.
I upload matches on YouTube and post GIFs on Tumblr
User avatar
delpetra
crazy of the little yellow ball
crazy of the little yellow ball
 
Messages: 86
Gaming Since: 21 Jun 2013, 21:54

Re: Adding custom font

Postby manutoo » 18 Aug 2014, 04:27

It seems ok for me, except maybe on the biggest font. If raising the texture size doesn't help, it could be because you have an old GPU not supported bigger fonts (or you already hit the 2048x2048 limit). Alternatively, it could be a problem with the alpha channel which would be not anti-aliased enough.
ManuTOO
== Mana Games ==

>> I don't answer Private Message, except if it's really a _Private_ topic <<
User avatar
manutoo
Game Author
 
Messages: 18689
Gaming Since: 24 Jan 2004, 15:38
Location: France


Return to Modding - TE2013

Who is online

Users browsing this forum: No registered users and 27 guests