Support and General Use > Theming and Appearance Customization

Wrapping a long title

(1/2) > >>

mango:
I want to split a title across multiple lines on my WPS. With a monospaced font I could calculate the number of characters on a line and use %ss to split the title. Do you have any suggestions on how to do this with a variable width font?

Dook:
There is no straightforward method unfortunately. I do mine with some reasonable guestimates, check out my implementations in Themify and adwaitapod simplified.

iPodVT:

--- Quote from: mango on April 23, 2025, 03:42:35 AM ---With a monospaced font I could calculate the number of characters on a line...

--- End quote ---

How would you do that?

gnomacor:
It kind of doesn't matter if it's variable width or not - you can slice it up regardless with a sensible number. You can check out wavy theme and it turns this up to 11: each and every letters are sliced positioned letter by letter. As Dook said there is no better way as of now.

chronicallyoffline:

--- Quote from: iPodVT on April 23, 2025, 12:13:31 PM ---
--- Quote from: mango on April 23, 2025, 03:42:35 AM ---With a monospaced font I could calculate the number of characters on a line...

--- End quote ---

How would you do that?

--- End quote ---
From the CustomWPS page
 
%?if(%ss(0, 20, %it), =, %it)<track title length is 20 characters or less|track title length is over 20 characters>

I've attempted it, but the issue is there's no way to guarantee a break on a space unless there's some additional conditional wizardry we can do.

Navigation

[0] Message Index

[#] Next page

Go to full version