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
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  using multiple fonts for themes
« previous next »
  • Print
Pages: [1]

Author Topic: using multiple fonts for themes  (Read 1827 times)

Offline mauzzz

  • Member
  • *
  • Posts: 4
using multiple fonts for themes
« on: January 03, 2017, 08:07:58 AM »
I have Rockbox 3.1.3 on an iPod Video 5.5. I use different themes for Base Skin and Now Playing. Each theme was designed for a different font. But Theme Settings > Font sets the same font for both. Is there a way to set a font for each theme?
Logged

Offline cereal_killer

  • Member
  • *
  • Posts: 409
Re: using multiple fonts for themes
« Reply #1 on: January 04, 2017, 06:43:18 AM »
I suggest to edit the *.cfg file of the theme to set the font for the menus and edit the *.wps file to use another font for the WPS. have a look at *.wps files of other themes to get an idea and see https://www.rockbox.org/wiki/CustomWPS.

I also suggest to use development builds as they work perfectly and offer more features and bugfixes than 3.13.
Logged

Offline mauzzz

  • Member
  • *
  • Posts: 4
Re: using multiple fonts for themes
« Reply #2 on: January 05, 2017, 08:52:49 AM »
I didn't get this to work yet.

config.cfg says:
wps: /.rockbox/wps/SpartanBlack.wps
sbs: /.rockbox/wps/terminal.sbs

in terminal.cfg I've added:
font: /.rockbox/fonts/15-Adobe-Helvetica.fnt

in SpartanBlack.wps I've added:
%Fl(2,12-Nimbus.fnt)

But no effect, the GUI setting for fonts will determine the font in both themes. Running the dev version now. Do you have any suggestions?
Logged

Offline Frankenpod

  • Member
  • *
  • Posts: 415
Re: using multiple fonts for themes
« Reply #3 on: January 05, 2017, 09:18:04 AM »
Quote from: mauzzz on January 05, 2017, 08:52:49 AM
I didn't get this to work yet.

config.cfg says:
wps: /.rockbox/wps/SpartanBlack.wps
sbs: /.rockbox/wps/terminal.sbs

in terminal.cfg I've added:
font: /.rockbox/fonts/15-Adobe-Helvetica.fnt

in SpartanBlack.wps I've added:
%Fl(2,12-Nimbus.fnt)

But no effect, the GUI setting for fonts will determine the font in both themes. Running the dev version now. Do you have any suggestions?

Just adding a custom font in the SpartanBlack WPS file won't make the WPS actually use it unless you also change the relevant viewport statements to use that font instead of the default one (font '2' instead of '0')
Logged

Offline mauzzz

  • Member
  • *
  • Posts: 4
Re: using multiple fonts for themes
« Reply #4 on: January 05, 2017, 10:34:52 AM »
Thank you @Frankenpod. That did it. I now have the desired font for each theme.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  using multiple fonts for themes
 

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

Page created in 0.073 seconds with 15 queries.