Page 1 of 1

Adding custom font

PostPosted: 16 Aug 2014, 13:16
by delpetra
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.

Re: Adding custom font

PostPosted: 16 Aug 2014, 16:37
by antimouse
Try Codehead's Bitmap Font Generator. It was suggested to me by Rounders sometime ago.

Re: Adding custom font

PostPosted: 16 Aug 2014, 17:23
by delpetra
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?

Re: Adding custom font

PostPosted: 17 Aug 2014, 04:02
by manutoo
reshonda,
open hugechars.tga and check its alpha channel to see how it's done.

Re: Adding custom font

PostPosted: 17 Aug 2014, 18:06
by delpetra
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.

Re: Adding custom font

PostPosted: 18 Aug 2014, 04:27
by manutoo
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.