Having a problem with clipstring trying to generate text outside my specified width dimensions. I think it might have something to do with fontweight.
It's displaying from a Spotify measure and I noticed it playing Jigsaw Falling Into Place by Radiohead. First time I've had a problem that hasn't been fixed by a quick search.
Here's my code, I've added solidcolor to show where I'm trying to keep my text.
I wanted to keep my FontSize static and the text clipped to keep a maximum width. #Size# was only there to scale everything at the same rate. Turns out all I needed was the AccurateText=1 setting so it could recognize the size of the characters after changing FontWeight.
Alilliender wrote: ↑August 11th, 2021, 2:37 am
I wanted to keep my FontSize static and the text clipped to keep a maximum width.
Besides setting the AccurateText=1 option, you might want trying to set the ClipString=2 option on the String meters, along with setting proper ClipStringW and ClipStringH options. For instance:
Additonal note: The NowPlaying measures should have be always used into a parent - child structure, which means that if more than a single such measure is used (like this time), one should be the parent- and the other should be the child measure, which is referencing the parent measure. In your code both measures are parent measures (this can be known by the fact that both measures have the PlayerName=Spotify option), which even if does work, is not the best approach. So recommend to change the PlayerName option of the [MeasureA] measure to PlayerName=[MeasureT], in which case [MeasureT] will be the parent measure and obviously [MeasureA] will be the child measure. Something like this: