MateiVidican / u8glib

Automatically exported from code.google.com/p/u8glib
Other
0 stars 0 forks source link

Creating new fonts #243

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello, how can I make new font from .bdf font file?
Below, what I do
1. Creating MyHandel.bdf file with FrontForge (its size is 66220 bytes)
2. In command line write: bdf2u8g_101 MyHandel.bdf MyHandel MyHandel-u8

 Result: MyHandel-u8 file (size 1500) contains nothing like I can use for my project :( 

By the way - 
Can I find: (tried google a lot already)
- any tutorial how to make fonts (to use with u8glib) based on ready .bdf file?
- any manual on bdf2u8g_101?

Original issue reported on code.google.com by smale...@gmail.com on 16 Mar 2014 at 12:25

GoogleCodeExporter commented 9 years ago
A (small) tutorial is here: http://code.google.com/p/u8glib/wiki/bdf2u8g
Maybe you can attach the result file for crosscheck.

Original comment by olikr...@gmail.com on 16 Mar 2014 at 12:38

GoogleCodeExporter commented 9 years ago
Thanks for quick answer. 
I have tried Fony now, as it gives a possibility to export to .bdf
I try to do large font size, and during conversation from .bdf I got a message:
"Glyph with encoding 48 is too large (288>255)"
.bdf file in attachment

Original comment by smale...@gmail.com on 16 Mar 2014 at 12:59

Attachments:

GoogleCodeExporter commented 9 years ago
U8glib has been written for 8 bit MCUs. So, the internal data structures do not 
allow more than 255 bytes per glyph. The internal font format can not be 
generated with such a large character. About 32x61 (or 39x50) pixel currently 
is the limit for a gylph outline box in u8glib.

As a workaround you could use the setScale2x2 command in u8glib to double the 
size of a glyph.

Original comment by olikr...@gmail.com on 16 Mar 2014 at 1:07

GoogleCodeExporter commented 9 years ago

Original comment by olikr...@gmail.com on 16 Jun 2014 at 7:08