Rockbox General > Rockbox General Discussion

Keyboard layout and proportional fonts

(1/2) > >>

DervishD:
Hi all :)

I'm trying my own keyboard layout, and as I expected, the font used for the new layout is the font I have in my theme instead of the default one.

My question is double: since my font is proportional (I'm using a modified "snap" font), the width of which character is used so the virtual keyboard appears "monospaced" (maybe "maxwidth" is used...)? Can I force the use of the default font *just* for the keyboard layout?

Thanks in advance :)
Raúl

bascule:
No, you can't. I've got round this problem by re-designing the layout myself to fit. I have a Gigabeat, so I've mande a very tall and narrow .kbd file that fits with my chosen font

DervishD:

--- Quote from: bascule on August 15, 2007, 02:35:47 AM ---No, you can't. I've got round this problem by re-designing the layout myself to fit. I have a Gigabeat, so I've mande a very tall and narrow .kbd file that fits with my chosen font

--- End quote ---

I've done the same. Since I don't know if the width of a certain char is used, or if "maxwidth" is used, I've reduced the width of a couple characters in the font and now the display is better. This, together with a modified layout gives a very good looking keyboard.

Damn, rockbox is fantastic: having the sources *and* the power it gives to me, my DAP is more useful than ever.

And, of course, thanks for your answer.

Raúl

bascule:

--- Quote from: DervishD on August 15, 2007, 06:33:31 AM ---Damn, rockbox is fantastic:
--- End quote ---

Oh yeah!  ;D

markun:

--- Quote from: DervishD on August 15, 2007, 06:33:31 AM ---I've done the same. Since I don't know if the width of a certain char is used, or if "maxwidth" is used, I've reduced the width of a couple characters in the font and now the display is better. This, together with a modified layout gives a very good looking keyboard.

--- End quote ---

The code was written to use the max width of the glyphs in the .kbd file.
If you think the font looks better maybe you could submit a patch for it?

Navigation

[0] Message Index

[#] Next page

Go to full version