Bitmap Font

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.

Bitmap Font

Postby Arclamp » Thu Aug 10, 2017 4:42 am

Hi, I made this but it doesn't seem to work right when using even though all the markers seem ok to me, anything I should know?

Image
Arclamp
 
Posts: 46
Joined: Thu Oct 10, 2013 7:45 pm

Re: Bitmap Font

Postby CuteAlien » Thu Aug 10, 2017 10:49 am

Strange, it seems I can no longer use "Save image as" in the browser for images from imgur (getting xml instead - crazy stufff... but can still copy it luckily).

Anyway - error in your case should be on console "The amount of upper corner pixels and the lower corner pixels is not equal, font file may be corrupted."

I checked image quickly and you have an additional red point directly beside the first yellow one. Remove that and it works.
IRC: #irrlicht on irc.freenode.net
Code snippets, patches&stuff: http://www.michaelzeilfelder.de/irrlicht.htm
Free racer created with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
User avatar
CuteAlien
Admin
 
Posts: 8352
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany

Re: Bitmap Font

Postby Arclamp » Mon Aug 14, 2017 10:24 pm

I've not had time to get back to this yet, but in that example image there was an escape sequence (for quote) messing up the sequence, but it still didn't work.

From reading CGUIFont, it looks like it uses the first three pixels as identifiers, 0,0=start(yellow), 1,0=red(end), 2,0=bg

I must have set logging to totally off last time I built Irrlicht, I'll lower to see the error warning you got n report back soon...
Arclamp
 
Posts: 46
Joined: Thu Oct 10, 2013 7:45 pm

Re: Bitmap Font

Postby CuteAlien » Mon Aug 14, 2017 10:43 pm

Don't know about troubles on your side - but I got it working the way I mentioned above - by removing the wrong red dot below the yellow one in the png.
IRC: #irrlicht on irc.freenode.net
Code snippets, patches&stuff: http://www.michaelzeilfelder.de/irrlicht.htm
Free racer created with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
User avatar
CuteAlien
Admin
 
Posts: 8352
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany


Return to Beginners Help

Who is online

Users browsing this forum: No registered users and 1 guest