Adafruit GFX new font?

by pigman on Sun May 20, 2012 9:44 am

Hi,

Is it possible to create/convert a font over to work with the GFX Library?

I'm keen to create another font for the screen.

Cheers
pigman
 
Posts: 5
Joined: Tue May 08, 2012 5:45 pm

Re: Adafruit GFX new font?

by adafruit on Mon May 21, 2012 2:26 pm

you can, we have no documentation or tutorials on how to create a new font
User avatar
adafruit
 
Posts: 11643
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: Adafruit GFX new font?

by pburgess on Mon May 21, 2012 2:30 pm

This thread, as well as picking through the Adafruit_GFX library source, might give some insights for how an alternate font can be implemented.
User avatar
pburgess
 
Posts: 2440
Joined: Sun Oct 26, 2008 1:29 am

Re: Adafruit GFX new font?

by punktown on Sat Jun 23, 2012 10:03 pm

I've been thinking about making a glyph editor for this font as well.

Have you made any progress, pigman? Anyone else done work in this direction?
If not i'll share what I come up with.
punktown
 
Posts: 3
Joined: Sat Jun 23, 2012 9:28 pm

Re: Adafruit GFX new font?

by pigman on Sun Jun 24, 2012 7:42 am

Hey, no haven't made any progress with it as yet. I have been looking at utft lately they have a font creator I think but haven't had time to do much with that either :( let use all know your progress
pigman
 
Posts: 5
Joined: Tue May 08, 2012 5:45 pm

Re: Adafruit GFX new font?

by punktown on Wed Jun 27, 2012 8:32 pm

Ok, I've got an editor worked up. I did it in Excel to take advantage of some formatting and editing conveniences. It gives a visualization of each glyph from the Adafruit_GFX lib 5x7 font, and lets you edit and get revised output to a custom version of the font file (glcdfont.c).

There are 2 versions in the zip:
GlyphEditor_5x7.xlsx: This is the best one, uses Excel conditional formatting rules for a nicer matrix visualization. May not work in other spreadsheet editing programs.
GlyphEditor_5x7-textonly.xlsx: If the one above just shows ones and zeroes in the matrix viz in your spreadsheeting program, use this one instead. It does not use conditional formatting.

Let me know how it works out for you.
Attachments
GlyphEditor_5x7.zip
Glyph Editor for Adafruit_GFX Library 5x7 font.
(919.02 KiB) Downloaded 285 times
punktown
 
Posts: 3
Joined: Sat Jun 23, 2012 9:28 pm

Re: Adafruit GFX new font?

by zxfr on Fri Feb 01, 2013 11:21 am

If you are interested in a using of fonts with a variable glyph width (not limited to a matrix like 5x7), try TTF font converter tool of http://pd4ml.com/pixelmeister/ and its uText library.

The resulting fonts are very compact, as they include only requested glyphs (or glyph ranges) and the glyph bitmap data is packed. Optionally the fonts can include antialiasing hints.
zxfr
 
Posts: 3
Joined: Fri Feb 01, 2013 10:30 am