Archive of the Gamebuino Classic forum (2014-2018), rebuilt from the pages kept by the Wayback Machine: only part of the topics and pages were captured. Read-only. Removal on request: hi@gamebuino.com.
Create my own font
FreddyBoubil Fri Jun 20, 2014 8:57 am
Hi all,
I'd like to use this kind of figures (each cell on the screenshot means a pixel) :

to write numbers.
I was thinking to consider every figure as a bitmap, to display then with drawBitmap, but I think it will be a little long to display numbers. Indeed, I'll have to parse numbers to see which figures it contains and then display the correct ones.
So I wanted to use the print method, but it means that I can change the font used.
Is it possible to create a font and then use it ?
Thanks.
I'd like to use this kind of figures (each cell on the screenshot means a pixel) :
to write numbers.
I was thinking to consider every figure as a bitmap, to display then with drawBitmap, but I think it will be a little long to display numbers. Indeed, I'll have to parse numbers to see which figures it contains and then display the correct ones.
So I wanted to use the print method, but it means that I can change the font used.
Is it possible to create a font and then use it ?
Thanks.
DFX2KX Fri Jun 20, 2014 10:07 pm
The font files are located in the library itself, they're changeable, but I'm not sure if switching on the fly is possible. I know it was discussed, not seeing any font functions currently in the reference
rodot Sat Jun 21, 2014 9:18 am
... And I included a font editor in the "utilities" folder on GitHub, along with the default fonts. But your font is pretty close the the default one!
FreddyBoubil Tue Jun 24, 2014 9:08 am
Thank you :) I didn't see there was a font editor, it's great ! And I didn't know about the two default fonts. The small one seems to be perfect :)
I just saw the last update of the indiegogo campaign ;) rodot always on top 8-)
I just saw the last update of the indiegogo campaign ;) rodot always on top 8-)
rodot Tue Jun 24, 2014 1:04 pm
Hehe, you're welcome :D
lastfuture Fri Jul 24, 2015 9:52 pm
I'm sorry, but I can't find the font editor. In the changelog for the main repo you're saying in 2014 that the font editor and emulator are going to get their own repositories, but I'm unable to find those.
rodot Sat Jul 25, 2015 10:49 am
You can fin all the emulators on the Emulators page of the wiki.
But you're right about the font encoder, I didn't put it online, I'm doing it right away.
But you're right about the font encoder, I didn't put it online, I'm doing it right away.
lastfuture Thu Jul 30, 2015 10:47 pm
I still can't find it. Have you put it online already?
rodot Fri Jul 31, 2015 6:14 am
Here it is! The font editor comes for the glcd-arduino project and requires java to run.
lastfuture Fri Jul 31, 2015 6:33 am
Many thanks!