Page 1 of 1

Create my own font

PostPosted: Fri Jun 20, 2014 8:57 am
by FreddyBoubil
Hi all,

I'd like to use this kind of figures (each cell on the screenshot means a pixel) :

Image

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.

Re: Create my own font

PostPosted: Fri Jun 20, 2014 10:07 pm
by DFX2KX
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

Re: Create my own font

PostPosted: Sat Jun 21, 2014 9:18 am
by rodot
... 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!

Re: Create my own font

PostPosted: Tue Jun 24, 2014 9:08 am
by FreddyBoubil
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-)

Re: Create my own font

PostPosted: Tue Jun 24, 2014 1:04 pm
by rodot
Hehe, you're welcome :D

Re: Create my own font

PostPosted: Fri Jul 24, 2015 9:52 pm
by lastfuture
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.

Re: Create my own font

PostPosted: Sat Jul 25, 2015 10:49 am
by rodot
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.

Re: Create my own font

PostPosted: Thu Jul 30, 2015 10:47 pm
by lastfuture
I still can't find it. Have you put it online already?

Re: Create my own font

PostPosted: Fri Jul 31, 2015 6:14 am
by rodot
Here it is! The font editor comes for the glcd-arduino project and requires java to run.

Re: Create my own font

PostPosted: Fri Jul 31, 2015 6:33 am
by lastfuture
Many thanks!