Messed up 256-character fonts

Previous topic - Next topic

doimus

I have trouble using 256-character fonts with squared size, made with DiNGSFont.

GLB prints completely different characters when using it. This only happens when using the n^2 option AND 256-character option at the same time.




MrTAToad

I think its been like that for a while now...

Kitty Hello

post the font file,please

doimus

I'm attaching the font file and the result I get when I run this code:
Code (glbasic) Select


LOADFONT "font1.png", 1
SETFONT 1

PRINT "This is a test of 256-char font.", 0,0

SHOWSCREEN
KEYWAIT




[attachment deleted by admin]

Kitty Hello

Make the font at least one pixel higher than wide. 512x512 is bad. Did the font create do this for you?

doimus

I was aiming at 32x32 characters intentionally - the goal was to manually replace some characters with images and to use that to draw game graphics, Commodore 64 style. =D

Hemlos

I thought this was messed up because i didnt have extra languages suported in my computer.

@Gernot: yes the dings font thing makes the images that dimension when you select n^2 squared.
Bing ChatGpt is pretty smart :O

Moru

This is still the case btw. It's enough to start DiNGSFont, select 2^n, 256 characters and save as PNG. This makes the fontsize 16x16 pixels and you get a fontfile that is 256x256 pixels big.

Kitty Hello

OK, I'll fix it for good.

Moru