-
Notifications
You must be signed in to change notification settings - Fork 316
bdf2u8g
olikraus edited this page Aug 22, 2015
·
2 revisions
bdf2u8g converts a bdf font (glyph bitmap distribution format) to the internal u8glib font format
https://drive.google.com/folderview?id=0B5b6Dv0wCeCRLWJkYTh2TUlYVDg&usp=sharing
The section specifier for the font array will change for U8lib v1.13. For any custom fonts the old section specifier
U8G_SECTION(".progmem.fontname")
should be replaced by
U8G_FONT_SECTION("fontname")
U8glib v1.13 already contains the correct section specifier. The new version of bdf2u8g will also generate the new section specifier.
Example:
bdf2u8g.exe -b 32 -e 127 5x7.bdf font5x7 font5x7.c
Required arguments
- .bdf file (A file which usually ends in .bdf)
- fontname (C identifier for the fontname)
- .c file (Output file which has C syntax and contains the data of the font)
Optional arguments
-
[-b num]
Start with ASCII codenum
, range fornum
: 0..255 -
[-e num]
End with ASCII codenum
, range fornum
: 0..255 -
[-l page]
Use thispage
within the bdf font for ASCII codes 0..127, range forpage
: 0..512, page 0 selects encoding 0..127, page 1 selects encoding 128..255, etc. -
[-u page]
Use thispage
within the bdf font for ASCII codes 128..255, range forpage
: 0..512, page 0 selects encoding 0..127, page 1 selects encoding 128..255, etc.
- Display unicode strings as hex numbers: http://rishida.net/tools/conversion/