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



Rockbox mail archive

Subject: the font format and loader

the font format and loader

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 13 Sep 2002 14:21:06 +0200 (MET DST)

Greg,

1. Why is the internal font format using 2 bytes for every horizontal line
   when there is no letters that wide? Wouldn't it make more sense to use a
   format that adjusts to the widest character and uses no more than that?

2. The rotate function. Why is that made on init and not on load? Also, I
   think it makes a slightly naive operation when it assumes that the rotated
   bitmap never outgrows the source image size. Of course, the 2-byte thing
   for the previous paragraph helps out here to prevent this from happening
   very often. A single letter that is 14x10 pixels big uses 10*2=20 bytes in
   the .fnt format. But when rotated to rockbox internal bitmap it'll require
   14*2=28 bytes...

-- 
Daniel "Bagder" Stenberg -- http://rockbox.haxx.se/
Received on 2002-09-13

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