Rockbox

  • Status Closed
  • Percent Complete
    100%
  • Task Type Bugs
  • Category User Interface
  • Assigned To No-one
  • Operating System Iriver H300 series
  • Severity Very Low
  • Priority Very Low
  • Reported Version
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Rockbox
Opened by PaulJam - 2006-10-20
Last edited by nls - 2007-08-19

FS#6220 - Keyboard: max. glyph width doesn't get reset when using custom .kbd and changing font

Description:
When using a custom layout for the virtual keyboard via a .kbd file and change to a font that is narrower than the previous font, the width of the grid in the keyboard is still that which was used for the previous font. Only after a reboot the width is adjusted to the new font. When changing to a wider font the grid gets calculated correctly.

Reproduction (on H300):
Load the font nimbus12, load a .kbd file, enter the virtual keyboard, now 18 glyphs fit on each line. Then load the font courB14 and enter the keyboard, now 15 glyphs fit on each line. When you now load the nimbus12 font again and enter the virtual keyboard the number of glyphs that fit on each line is still 15 instead of 18.

Possible fix:
in apps/recorder/keyboard.c insert the line “param[l].font_w = 0;” before the maximum glyph width gets calculated in line 329. This fixes the problem, but I don’t know if it has any bad side effects.

Closed by  nls
2007-08-19 17:11
Reason for closing:  Fixed

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing