mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Theme Editor: Added dummy font class and implemented font load tag
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27096 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
168eba1aec
commit
6d6156603c
6 changed files with 116 additions and 2 deletions
|
@ -592,6 +592,23 @@ void ParseTreeNode::render(const RBRenderInfo &info, RBViewport* viewport)
|
|||
|
||||
break;
|
||||
|
||||
case 'F':
|
||||
|
||||
switch(element->tag->name[1])
|
||||
{
|
||||
|
||||
case 'l':
|
||||
/* %Fl */
|
||||
x = element->params[0].data.numeric;
|
||||
filename = info.settings()->value("themebase", "") + "/fonts/" +
|
||||
element->params[1].data.text;
|
||||
info.screen()->loadFont(x, new RBFont(filename));
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case 'V':
|
||||
|
||||
switch(element->tag->name[1])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue