Create my own font

Libraries, utilities, bootloaders...

Create my own font

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

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.
FreddyBoubil
 
Posts: 9
Joined: Fri Mar 28, 2014 1:49 pm
Location: France

Re: Create my own font

Postby 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
DFX2KX
 
Posts: 250
Joined: Mon Apr 14, 2014 3:48 am

Re: Create my own font

Postby 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!
User avatar
rodot
Site Admin
 
Posts: 1290
Joined: Mon Nov 19, 2012 11:54 pm
Location: France

Re: Create my own font

Postby 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-)
FreddyBoubil
 
Posts: 9
Joined: Fri Mar 28, 2014 1:49 pm
Location: France

Re: Create my own font

Postby rodot » Tue Jun 24, 2014 1:04 pm

Hehe, you're welcome :D
User avatar
rodot
Site Admin
 
Posts: 1290
Joined: Mon Nov 19, 2012 11:54 pm
Location: France

Re: Create my own font

Postby 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.
lastfuture
 
Posts: 29
Joined: Mon Jul 14, 2014 7:20 pm

Re: Create my own font

Postby 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.
User avatar
rodot
Site Admin
 
Posts: 1290
Joined: Mon Nov 19, 2012 11:54 pm
Location: France

Re: Create my own font

Postby lastfuture » Thu Jul 30, 2015 10:47 pm

I still can't find it. Have you put it online already?
lastfuture
 
Posts: 29
Joined: Mon Jul 14, 2014 7:20 pm

Re: Create my own font

Postby 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.
User avatar
rodot
Site Admin
 
Posts: 1290
Joined: Mon Nov 19, 2012 11:54 pm
Location: France

Re: Create my own font

Postby lastfuture » Fri Jul 31, 2015 6:33 am

Many thanks!
lastfuture
 
Posts: 29
Joined: Mon Jul 14, 2014 7:20 pm


Return to Software Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron