On 2013-06-13 13:03, Manu Abraham wrote: > On Thu, Jun 13, 2013 at 5:05 PM, David wrote: >>=20 >> I use MuGUI Font & Bitmap generator, from www.mugui.de to produce >> these: >> https://github.com/edeca/Electronics/blob/master/Include/fonts/font_luci= daconsole.h >>=20 >> It is especially nice because it supports custom XSL files[1] which >> allow you to generate the output in any way you'd like. There are=20 >> some >> good built-in examples, but if you want to integrate with existing=20 >> code >> you can tweak the output into any format you'd like. >>=20 >> There are some example photos of a GLCD with my fonts/code halfway=20 >> down >> my ST7565 tutorial: >> http://edeca.net/wp/electronics/the-st7565-display-controller/ >>=20 >> David >>=20 >> 1 - See >> https://github.com/edeca/Electronics/blob/master/Support/GlcdFiles/mugui= _edeca.xsl >=20 > I downloaded MuGUI yesterday and tried playing with it a bit. > The generated font header confuses me a bit: >=20 > /* Index 3, character 35 "#" (width: 13 pixels) */ > 0xD, > 0x70,0x0E,0x00,0x70,0x6E,0x00,0x70,0x7F,0x00,0xF8,0x7F,0x00,0xFE,0x1F,0x0= 0,0xFE,0x0E,0x00,0x76,0x6E,0x00,0x70,0x7F,0x00,0xF8,0x7F,0x00,0xFE,0x1F,0x0= 0,0xFE,0x0E,0x00,0x76,0x0E,0x00,0x70,0x0E,0x00, >=20 >=20 > What the relevance of 0xD ? Is it because it is using variable width=20 > fonts ? > I liked the MuGUI interface a bit, but the results got me confused=20 > quite a bit > and made me look at other alternatives. >=20 > I think, fixed width fonts are better suited in my case. (I am not=20 > really sure > about that, but being simpler to handle and hence that comment. Have > started to play with it since a few days alone.) When you import a font you have the choice of proportional or fixed=20 width. I believe the default XSL output files will generate fixed width=20 information. The 0xD is the width, which is 13 and therefore the same as the width=20 in the comment. Looks like whatever font you used was tall enough to=20 require three bytes (this will be in the font header), thus there are 39=20 total data bytes in the character above. I didn't like the default XSL files much so I wrote my own. It did=20 take some fiddling, but reading through the example XSL files will=20 likely teach you a lot. David --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .