Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: run-time bitmap rotating?

Re: run-time bitmap rotating?

From: Greg Haerr <greg_at_censoft.com>
Date: Thu, 12 Sep 2002 08:45:03 -0600

: > Certainly we can remove the runtime rotation during the font conversion
: > process, but it gets a bit tricky
:
: Why is that tricky?

Because I wanted to have the font glyph data printed
out in text as well to make sure the characters were converted
properly for strange fonts, and because when font widths
move across an unsigned short boundary (bdf standard)
to unsigned char boundarys (rb standard) the algorithms
are prone to off-by-one row/column errors...


:
: > IMHO, as Rockbox gets more graphical, it's to our advantage not to have to
: > rewrite all image formats to a non-standard format
:
: But the .fnt format is Rockbox-unique isn't it?

Yes.

:
: > With only 112x64 bits on the screen, it's not that much computation time.
:
: No, it just seems unnecessary.
:
: If we for whatever reason decide to have the .fnt bitmaps rotated as they are
: now, then I would instead suggest that we do the rotation on load-time. To
: me, it seems silly to rotate them every time we want to show them on screen.

That's a very good idea. Would you like me to implement
that? The memory usage might become a bit greater unless
I can guarantee that the rotated data can fit in the original
space...

Regards,

Greg
Received on 2002-09-12

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy