Info Viewport (Sbs Only); Additional Fonts - Toshiba Gigabeat F Manual

Rockbox firmware manual
Table of Contents

Advertisement

Chapter 12. Advanced Topics

12.2.3. Info Viewport (SBS only)

As mentioned above, it is possible to set a UI viewport via the theme .cfg file. It is also
possible to set the UI viewport through the SBS file, and to conditionally select different
UI viewports.
%Vi('label',...) This viewport is used as Custom UI Viewport in the case that
the theme doesn't have a ui viewport set in the theme .cfg file. Having this is
strongly recommended since it makes you able to use the SBS with other themes.
If label is set this viewport can be selectivly used as the Info Viewport using the
%VI tag. The '. . . ' parameters use the same logic as the %V tag explained above.
%VI('label') Set the Info Viewport to use the viewport called label, as declared
with the previous tag.

12.2.4. Additional Fonts

Additional fonts can be loaded within each screen file to be used in that screen. In this
way not only can you have different fonts between e.g. the menu and the WPS, but you
can use multiple fonts in each of the individual screens.
%Fl('id',filename,glyphs)
'id' is the number you want to use in viewport declarations, 0 and 1 are reserved
and so can't be used.
'filename' is the font filename to load. Fonts should be stored in /.rockbox/fonts/
'glyphs' is an optional specification of how many unique glyphs to store in memory.
Default is from the system setting Glyphs To Load.
An example would be: %Fl(2,12-Nimbus.fnt,100)
Conditional Tags
If/else: Syntax: %?xx<true|false>
If the tag specified by "xx" has a value, the text between the "<" and the "|" is
displayed (the true part), else the text between the "|" and the ">" is displayed
(the false part). The else part is optional, so the "|" does not have to be specified
if no else part is desired. The conditionals nest, so the text in the if and else part
can contain all % commands, including conditionals.
Enumerations: Syntax: %?xx<alt1|alt2|alt3|...|else>
For tags with multiple values, like Play status, the conditional can hold a list of
alternatives, one for each value the tag can have. Example enumeration:
The Rockbox manual
(version 3.14)
Toshiba Gigabeat F and X Series
195

Advertisement

Table of Contents
loading

This manual is also suitable for:

Gigabeat x

Table of Contents