Any way to change the default font ?

Previous topic - Next topic

okee

It's a bit annoying that the default font is unreadable, i know
you can load a bitmap font but then you have to go and kern it etc
would be handy to have a readable default font just for debugging
even if the size could be set in a config file or something..
Android: Samsung Galaxy S2 -  ZTE Blade (Orange San Francisco) - Ainol Novo 7 Aurora 2
IOS: 2 x Ipod Touch (1G)

MrTAToad

You could replace the small font in the program directory, but that would only last until the next update.

okee

I've tried changing the smalfont.bmp in the program dir
but doesn't seem to make a difference, also deleted it and
it still displayed on screen.
Is there any reason why GLBasic can't use the windows system fonts ?

Android: Samsung Galaxy S2 -  ZTE Blade (Orange San Francisco) - Ainol Novo 7 Aurora 2
IOS: 2 x Ipod Touch (1G)

MrTAToad

Yes, because TTF fonts aren't supported.

You could use Moru's proportional font system, which is very good.

Moru

The default font is just there for you to replace, nothing else. It's a few seconds of work to create your own font and it will even be loaded for you if you don't change the name of it. If you want to debug something, use the "DEBUG" command, much more readable and doesn't interfere with the display.

If you want proportional fonts, there are a few premade libraries to use, one is on my homepage but needs fixing since it had some workarounds for a grafics bug in GLBasic that doesn't exist any more. And it doesn't work on GP2X because polyvector doesn't work there at the moment :-)

Kitty Hello

Put the smalfont.png or .bmp in the .app directory.

Hemlos

Use Lucida Console font.
This font is tight, and doesnt really need to be kerned.
You need to put smalfont.png in your app directory.


[attachment deleted by admin]
Bing ChatGpt is pretty smart :O