Accept FS#11567 by Fred Bauer - better memory management for the skin fonts

%Fl now takes an optional 3rd param which is the number of glyphs to cache (default to 256). the smaller the number, the less ram will be used (i.e using 15 for a font which only shown numbers is a good idea)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27882 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2010-08-25 14:11:38 +00:00
parent 05d16b1d4e
commit faaf431d32
7 changed files with 59 additions and 9 deletions

View file

@ -313,16 +313,18 @@ 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.\\
\config{\%Fl('id',filename)}
\config{\%Fl('id',filename,glyphs)}
\begin{itemize}
\item `id' is the number you want to use in viewport declarations, 0 and 1
are reserved and so can't be used.
\item `filename' is the font filename to load. Fonts should be stored in
\fname{/.rockbox/fonts/}
\item `glyphs' is an optional specification of how many unique glyphs to
store in memory.
\end{itemize}
An example would be: \config{\%Fl(2,12-Nimbus.fnt)}
An example would be: \config{\%Fl(2,12-Nimbus.fnt,100)}
}