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
| | |-+  truncate lines
« previous next »
  • Print
Pages: [1]

Author Topic: truncate lines  (Read 1512 times)

Offline zamuz

  • Member
  • *
  • Posts: 3
truncate lines
« on: January 03, 2007, 12:01:55 AM »
is there a way to show only the first x characters of the title/artist/album/etc? i looked around for a while both in the wiki and the forums and i couldn't find anything.

thanks in advance :)
Logged

Offline Multiplex

  • Member
  • *
  • Posts: 440
Re: truncate lines
« Reply #1 on: January 03, 2007, 07:14:41 AM »
Don't forget that some fonts are proportional so the first X characters of IIII will be narrowe than MMMM.

I don't know of a way of doing it though, I'm tempted to suggest that you use images with transparent areas to mask but I suspect that you want to put several things on the same line so that won't work.
Logged

Offline Hweb21

  • Member
  • *
  • Posts: 164
Re: truncate lines
« Reply #2 on: January 03, 2007, 08:27:01 PM »
or you can use spaces and no %s
so if

[    26 spaces    ]%it

then using the right font it may look like

                         BlahBla[cut off]

or try using patches there's one that does this.
Logged

Offline zamuz

  • Member
  • *
  • Posts: 3
Re: truncate lines
« Reply #3 on: January 04, 2007, 01:06:51 AM »
actually, using small pics to cover the text where i needed to worked out ok. a scrolling line messes everything up though :P

it'd be cool to have scrolling lines while still being able to cover parts of them with images, that way i could make some sort of small notifier window inside the wps that shows the next song title, for example.

anyway here's how it looks now, the wps i'm using is a somewhat modified version of nOS Blue:



i removed some stuff from the original wps to keep it simple and uncluttered. also covered the right piece of text in the title with a small pic so that the line doesn't stretch out of the little 'box' thingy where all the info is. the pic also covers the artist and album info, so they don't stretch out either.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  truncate lines
 

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

Page created in 0.071 seconds with 15 queries.