Details

The first time you load a keyboard layout or start rockbox, the virtual keyboard is displayed properly. The next time you open it, however, it is rendered with a fixed width font and completely disregards the number of lines in the original file. Thus, it makes loadable layouts unusable.

I last tested with r22668 but this has been going on for a while now.

This task depends upon

Closed by Teruaki Kawashima (teru)
Saturday, 03 October 2009, 14:51 GMT Reason for closing: FixedAdditional comments about closing: Should be fixed in r22892.
Please open a new task if there is still
issue.

this hopefully fix issue.
it seems like that max width is set to the width of the '\n' character when kbd_input is called first time after loaded the kbd.
but '\n' in kbd_buf is replaced by the spaces filling the line later. and max width becomes smaller when kbd_input is called next time.

While the patch makes the virtual keyboard consistent (and properly rendered), it is now rendered with a different font (the UI one instead of the one I selected). I don't find it that much of an inconvenience but it would be nice if it would render as it did previously (see attached screenshot for clarification; compare with 110823 above).

I don't think different font is used. the difference is margin between two characters decided by lagest width among characters in kbd.
adding wider character(e.g. tab) to .kbd file would render the virtual keyboard like 110823.

I won't discuss the spacing until I'm sure I know what I'm talking about so let's leave that for now.

There's, however, another issue I noticed when using your patch - the input line gets cut off at the end of the keyboard layout, wasting almost half the screen space to the right. See screendump for clarification.