Wiki > Main > MultiFontSupport (compare)
Difference: MultiFontSupport (r7 vs. r6)
Rockbox currently only supports one user-loaded font at a time. There has long been a desire to extend this (if only to allow different fonts on the main and remote LCDs) to allow multiple fonts to be loaded and used simultaneously.
There has been a lot of discussion (FS #4733 and FS #8385) about how the API and user-configurability related to multi-fonts should work and this page is intended to be a place for documentation of the different proposals and discussion.
Please add your proposed solutions here, as well as contributing to the advantages and disadvantages sections for each proposal.
The main .cfg file contains a single
e.g. the .cfg file would contain a line of the form:
and a viewports definition in the WPS would look like:
Similarly, viewport definitions (or maybe simply font definitions) for other UI elements (e.g. menus) would also just refer to fonts in the global list.
Same as solution 1 except fonts are given labels.
e.g. in the config file: "fonts: list=helvR10, wps1=helvR12, wps2=term-12" and then in the viewport line in its config "|...|list|...|" The font labels could then be used everywhere without specifing the actual font name (so if you want to change the list font everywhere you only need to change it once).
Have the fonts for the wps defined in the actual .wps file. Like
The viewport would be initialized like this:
Other fonts like recording or general UI font to be defined in the config. DaveChapman - How? Also, are Font1, Font2 etc hard-coded labels? Why not just use numbers/letters (similar to bitmaps) - that would make it simpler to parse. ThomasMartitz - It was just an example, feel free do it in a similar way to bitmaps. That's exactly the point of my idea, to make it as similar is defining images. Of course the simpler to parse the better. Just wanted to make sure everyone gets the example.
r9 - 22 Mar 2008 - 15:59:03 - ThomasMartitzRevision r7 - 17 Mar 2008 - 02:01 - ThomasMartitz
Revision r6 - 16 Mar 2008 - 22:57 - DaveChapman
Copyright © by the contributing authors.