Re: A83: _sfont_len doesn't work?


[Prev][Next][Index][Thread]

Re: A83: _sfont_len doesn't work?




Simple: speed.  If every character is the same size, you can easily use
addition to find the correct character, rather than having to do a linear
search, or having to use a lookup table in combination with masking.

> > Hey Linus, it worked finally!! But, how did you figure that out? And why
is
> > the internal font table 8 bytes per character? The font is a variable
width
> > font, isn't it. So the font table also should be variable, or not?
>
> Because they don't know how wide it will be, they use an entire byte for
each
> row of the font.  If they knew each font would be 4 pixels or less in
width,
> they _could_ put two rows side by side in the same byte.  But this is TI,
and
> they had a huge rom to fill, so they didn't bother :-)





References: