FreeTypeFontGenerator - Adding characters

Anything libgdx related goes here!

FreeTypeFontGenerator - Adding characters

Postby Descartes » Fri Sep 18, 2015 7:36 am

Hi

I'm creating BitmapFont using FreeTypeFontGenerator.
I've created a large list of characters that may appear, however since the strings I display are received dynamically, I cannot forecast all possible characters and many times some characters missing.

I'm trying to figure a way where I can recognize a new char is added and add it to the BitmapFont.
I'm considering checking for new char and recreating the Bitmap font if necessary, however this looks like a pretty big overhead, there must be a better solution for that.

Anyone know of an effective way to deal with these cases ?
Descartes
 
Posts: 60
Joined: Thu May 28, 2015 5:35 am

Re: FreeTypeFontGenerator - Adding characters

Postby evilentity » Fri Sep 18, 2015 9:36 am

How large is large? If you really cant just create a font for all of them this is best you can do.
Looking for a freelancer? PM me!
Check out libgdx discord server!
evilentity
 
Posts: 4867
Joined: Wed Aug 24, 2011 11:37 am

Re: FreeTypeFontGenerator - Adding characters

Postby Descartes » Fri Sep 18, 2015 12:11 pm

500 chars, where most of them are rare.
Descartes
 
Posts: 60
Joined: Thu May 28, 2015 5:35 am


Return to Libgdx

Who is online

Users browsing this forum: MSN [Bot] and 1 guest