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.
Post Reply
Arclamp
Posts: 71
Joined: Thu Oct 10, 2013 7:45 pm

Bitmap Font

Post by Arclamp »

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
CuteAlien
Admin
Posts: 9628
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Bitmap Font

Post by CuteAlien »

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.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Arclamp
Posts: 71
Joined: Thu Oct 10, 2013 7:45 pm

Re: Bitmap Font

Post by Arclamp »

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...
CuteAlien
Admin
Posts: 9628
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Bitmap Font

Post by CuteAlien »

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.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply