Yes, the listing file would be nice to see.Depending on the fonts U8glib requires about 10K. If you do not need ASCII chars with code higher than 127, then fonts with a "r" postfix can be used to reduce flash memory.Also other libraries and the use of floating point are common reasons for increased memory usage.Oliver
c:/program files (x86)/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/lib/avr25/crttn85.o: In function `__vector_default':(.vectors+0xa): relocation truncated to fit: R_AVR_13_PCREL against symbol `__vector_5' defined in .text.__vector_5 section in core.a(wiring.c.o)core.a(main.cpp.o): In function `main':C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/main.cpp:15: relocation truncated to fit: R_AVR_13_PCREL against undefined symbol `serialEventRun()'
HiNice work. Glad to see that u8glib is usefull for you.The U8glib font format not only contains the bitmat data but also a lot of glyph information for precise font rendering (mainly used for my other lib m2tklib). Some information available in the fonts are described here: http://code.google.com/p/u8glib/wiki/tstring.The U8glib font format also tries to crop the bitmap data to save as much ROM as possible. All the glyph metric calculation, the bitmap reduction and the font encoding is done by an external program: http://code.google.com/p/u8glib/source/browse/tools/font/bdf2u8g/bdf2u8g.c. Simply compile the c-file with a unix or windows c-compiler (or send me a PM if you need the executable).bdf2u8g requires a font in the bdf format: http://en.wikipedia.org/wiki/Glyph_Bitmap_Distribution_FormatOn the internet several fonts are available as bdf files, see for example here: http://cgit.freedesktop.org/xorg/font/But it is also possible to convert truetype fonts (ttf) to bdf: I have used http://sofia.nmsu.edu/~mleisher/Software/otf2bdf/ and http://fontforge.org/. I am sure there are more tools (google has some 100.000 hits for "ttf bdf").Oliver
I don't know if you have used the u8g.drawBoxI'm using it from the middle of the display so the bar can grow to bottom and to top of the display.The problem is that the bar only "grows" in direction of bottom .
Using drawBox by changing its height on real-time makes its height increases from the Start position (y) to the down and I wanted the option of when changing the height, the box increases its height from the start position to the top.. .. Is there an option to do it or I will need to do by code? Tks, Oliver