> but, since one byte corresponds to one pixel column (or row, depending on
> FONT_BIT_DIRECTIO, right ?), if your char is 5 pixel width, it'll need 5
> bytes.

Not nesessarily. 8x12 will need 12 bytes per character, 12x8 will need
16 bytes per character and have some wasted bits, if bit order is the
same. 12 must go in to 2 bytes and "x8", so 2x1 bytes = 16.

5x7 font must have wasted bits somewhere, although 5x7 and 7x5 would
both contain the same number of bytes per character since it does not
cross any 8 bit boundary.

It is important to think about weird sized fonts, like 9x17. again,
full explanation in glcd_font.

please keep the bytes per character constant since we will have
different number of characters per set.

> No, the reference position is what moved. From this position will occur next 
> printing.

Your write_pixel procedure should only write one pixel and not
continue. This other feature lcd_gotoxy(x,y) is not alike other
glcd's. It would be faster however. This still sounds similar to my
glcd_address_set(x1,y1,x2,y2), except that yours would wrap at the end
of the screen instead of at x2. When you get to drawing lines etc, we
will have to stick with something similar to all lcd's, which so far
is only write_pixel. When there is a general font procedure in
glcd_common, it will need to use write_pixel. anyways, we'll continue
with fonts for now.

> have a look at 18f4550_nokia_3310_udf.jal. It declares a user defined
> font (UDF), there are only 5 chars, which are actually some kind of sprites.

The writers of the first font libs have assumed only printable
characters would be used. I'm sure we will have some fonts with small
images, that font may or may not start at offset 32. How much does it
matter? You can add a offset if you wish.

Matt.

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to