Switch to full style
Libraries, utilities, bootloaders...
Post a reply

Create my own font

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) :

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

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

Re: Create my own font

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!

Re: Create my own font

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-)

Re: Create my own font

Tue Jun 24, 2014 1:04 pm

Hehe, you're welcome :D

Re: Create my own font

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.

Re: Create my own font

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.

Re: Create my own font

Thu Jul 30, 2015 10:47 pm

I still can't find it. Have you put it online already?

Re: Create my own font

Fri Jul 31, 2015 6:14 am

Here it is! The font editor comes for the glcd-arduino project and requires java to run.

Re: Create my own font

Fri Jul 31, 2015 6:33 am

Many thanks!
Post a reply