Support and General Use > Theming and Appearance Customization

Second smaller font in wps

(1/2) > >>

rbhawaii:
Hello
I made a simple wps with the same large font across the entire screen. I want to use a smaller font in different parts of the screen.

I understand this tag loads the desired font which I placed into the fonts folder and makes it known as number 3

%Fl(3, 08-Fixed.fnt)

I would like to have this tag

%St(eq band 0 cutoff)

Show up with the small font

Can anyone help me?

In your reply could you please provide the code you think will work

Thank you 

nick_p:
You need to put the text in a viewport using that font id (3 in your case).

Rather than give you a viewport example with confusing coordinate & dimension example values, probably best you just read about them;

http://www.rockbox.org/wiki/CustomWPS#Viewports

toehser:
font per viewport.

So:

%V(0,0,50,50,3)
foo
%V(50,50,50,50,4)
bar

puts a viewport at (0,0) 50 high and 50 wide with font 3
and a viewport at 50,50 also 50 high and 50 wide with font 4

rbhawaii:
it does not seem to be working for me .
i am trying to do this on a "second screen" this screen appears for 2 seconds when i touch the volume. i think the second screen is one big viewport (?) . is it because you can not put a view port on top of one big view port that is already there?

toehser:
First, read http://www.rockbox.org/wiki/CustomWPS.

Then, look at other peoples themes.

Viewports do not layer or nest.

You'll have to replace to one big viewport with 3 smaller ones.

viewport with font a
viewport with font b
viewport back to font a

Navigation

[0] Message Index

[#] Next page

Go to full version