Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Second smaller font in wps
« previous next »
  • Print
Pages: [1]

Author Topic: Second smaller font in wps  (Read 1867 times)

Offline rbhawaii

  • Member
  • *
  • Posts: 125
Second smaller font in wps
« on: February 03, 2014, 04:20:32 AM »
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 
Logged

Offline nick_p

  • Member
  • *
  • Posts: 115
Re: Second smaller font in wps
« Reply #1 on: February 03, 2014, 05:26:45 AM »
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
Logged

Offline toehser

  • Member
  • *
  • Posts: 107
Re: Second smaller font in wps
« Reply #2 on: February 03, 2014, 11:19:30 AM »
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
Logged

Offline rbhawaii

  • Member
  • *
  • Posts: 125
Re: Second smaller font in wps
« Reply #3 on: February 03, 2014, 04:57:10 PM »
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?
Logged

Offline toehser

  • Member
  • *
  • Posts: 107
Re: Second smaller font in wps
« Reply #4 on: February 04, 2014, 09:25:18 AM »
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
Logged

Offline rbhawaii

  • Member
  • *
  • Posts: 125
Re: Second smaller font in wps
« Reply #5 on: February 04, 2014, 04:37:00 PM »
Hi toehser
Yes I have looked at http://www.rockbox.org/wiki/CustomWPS many many times, that is how I got as far as I did with my WPS prior to posting here for help.  That is why I requested that people please provide the code that they think will work. So I could cut and paste it in to my wps and then I’ll adjust the numbers to my X Y location placement. I also tried looking at other peoples codes , i dont know why i dont get it , i usually can figure stuff like this out but not here, thats why im asking for help.

If any one is not to busy I can send them my wps . If they can help me I will be very grateful. 

Thank you :)
Logged

Offline toehser

  • Member
  • *
  • Posts: 107
Re: Second smaller font in wps
« Reply #6 on: February 04, 2014, 09:52:40 PM »
I guess I don't get it, when you say you've looked at other peoples themes, and the CustomWPS guide, but don't get it... since there are so many theme examples.

Probably you should start with a _simple_ case.  Try this (ONLY this), and expand on it:

This works fine:

%Fl(2,08-Rockfont.fnt)
%Fl(3,12-Adobe-Helvetica-Bold.fnt)
%V(0,16,70,8,2)
Testing 1 2 3
%V(20,24,70,12,3)
Testing 4 5 6

Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Second smaller font in wps
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.074 seconds with 15 queries.