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
From: Daniel Stenberg (daniel_at_haxx.se)
Date: 2002-09-13


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/



Page was last modified "Jan 10 2012" The Rockbox Crew
aaa