Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Keyboard layout and proportional fonts
« previous next »
  • Print
Pages: [1]

Author Topic: Keyboard layout and proportional fonts  (Read 2047 times)

DervishD

  • Guest
Keyboard layout and proportional fonts
« on: August 14, 2007, 06:35:57 PM »
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
Logged

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: Keyboard layout and proportional fonts
« Reply #1 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
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

DervishD

  • Guest
Re: Keyboard layout and proportional fonts
« Reply #2 on: August 15, 2007, 06:33:31 AM »
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

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
Logged

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: Keyboard layout and proportional fonts
« Reply #3 on: August 15, 2007, 07:05:58 AM »
Quote from: DervishD on August 15, 2007, 06:33:31 AM
Damn, rockbox is fantastic:

Oh yeah!  ;D
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline markun

  • Developer
  • Member
  • *
  • Posts: 462
Re: Keyboard layout and proportional fonts
« Reply #4 on: August 15, 2007, 07:29:16 AM »
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.

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?
Logged

DervishD

  • Guest
Re: Keyboard layout and proportional fonts
« Reply #5 on: August 15, 2007, 11:27:57 AM »
Quote from: markun on August 15, 2007, 07:29:16 AM
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?

I've adapted the font to my likings, so I think it won't look better for everyone. This said, I think that some characters of the snap font look better after I've modified. What I can do is modifying the characters that look specially bad or that violate the FONTBOUNDINGBOX in the BDF. Will such a patch be accepted? For me it's just a few minutes with gbdfed ;) Of course it's much easier for me to send a patch for the font as-is, but some people using the "snap" font may miss some characters.

In the font I'm using I've removed some non-latin1 characters, modified the spacing of some chars and change some ugly looking chars (like the asterisk, for example). Moreover, I've removed some characters that weren't part of Unicode but were present in the font, replacing unicode characters. Since this may be considered a bad use of the font, I have not distributed the modifications. Maybe this can be called "usnap" or something (as it respects Unicode, even though it doesn't provide characters out of the latin1 plane...).

Raúl
« Last Edit: August 15, 2007, 11:34:32 AM by DervishD »
Logged

DervishD

  • Guest
Re: Keyboard layout and proportional fonts
« Reply #6 on: August 15, 2007, 11:40:11 AM »
Quote from: bascule on August 15, 2007, 07:05:58 AM
Quote from: DervishD on August 15, 2007, 06:33:31 AM
Damn, rockbox is fantastic:

Oh yeah!  ;D

I've forced a friend (who also has an iAudio X5V) to use Rockbox, too. And of course, I twisted his arm until he used my backdrop (which is a cute Linux penguin ;D)

I have another friend with an iPod, and he is smaller than me so I think I can manage to force him to use Rockbox too...

Curiously, my iAudio friend didn't want to try Rockbox because he thought it loooked "ugly", so he assumed it won't be very powerful. But then I throw the "Ultima" theme to his ugly face and now his life has changed  ::)

Raúl
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Keyboard layout and proportional fonts
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.071 seconds with 16 queries.