• Status Closed
  • Percent Complete
  • Task Type Bugs
  • Category User Interface → Themes
  • Assigned To No-one
  • Operating System Another
  • Severity Low
  • Priority Very Low
  • Reported Version Daily build (which?)
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Rockbox
Opened by sockbox - 2010-08-29
Last edited by freddyb - 2010-09-09

FS#11576 - Clip+ r27911 - Loading 35-Adobe-Helvetica.fnt takes 50k of skin RAM

Loading either 35 point fonts, 35-Adobe-Helvetica.fnt and 35-Adobe-Helvetica-Bold.fnt, take up 50KB of skin RAM rather than the usual 3KB. This occurs with the latest build for the Sansa Clip+, r27911-100828.

I have attached a test WPS file and a screen shot of the skin ram usage.

Closed by  freddyb
2010-09-09 18:36
Reason for closing:  Not a Bug
Additional comments about closing:   Warning: Undefined array key "typography" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 371 Warning: Undefined array key "camelcase" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 407

Problem resolved by using new skin fonts "glyphs" option.

a change went in during the last week or so which adds a 3rd optional param to the %Fl() tag to say how many glyphs should be cached, if you leave it off it will default to 256 which means about 50KB for the 35pt fonts.

Thanks. The glyph option is great! Reduced my skin by half.

Jd: I thought about capping the default font size to SKIN_FONT_SIZE but I think this will cause problems. The memory required for a font is related to the size of the glyphs and how many glyphs are used rather than screen size. The example above would have only allocated room for 16 glyphs using SKIN_FONT_SIZE. If the WPS displayed a line with 17 unique characters the glyph cache would pull every single glyph from disk. Even on an SD disk target this would be unusable. If the target has a bigger screen SKIN_FONT_SIZE increases to 10240 but that’s still only 52 glyphs for a big 35px font, which would still wear out the glyph cache. If anti-aliased fonts get accepted the font glyphs would be 4x larger, compounding the problem.


Available keyboard shortcuts


Task Details

Task Editing