Support and General Use > Theming and Appearance Customization
using multiple fonts for themes
(1/1)
mauzzz:
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?
cereal_killer:
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.
mauzzz:
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?
Frankenpod:
--- 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?
--- End quote ---
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')
mauzzz:
Thank you @Frankenpod. That did it. I now have the desired font for each theme.
Navigation
[0] Message Index
Go to full version