It is currently April 24th, 2024, 12:42 pm

Relative Positioning of String to stick together closer.

Get help with creating, editing & fixing problems with skins
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Relative Positioning of String to stick together closer.

Post by jsmorley »

Code: Select all

[MeasureSong]
Measure=String
String=The Long and Winding Road

[MeasureAlbum]
Measure=String
String=Paul McCartney

[MeterOne]
Meter=String
MeasureName=MeasureSong
InlineSetting=Size | 15
InlineSetting2=Color | 52,181,40,255
InlineSetting3=Weight | 700
W=150
ClipString=2
ClipStringH=45
AntiAlias=1

[MeterTwo]
Meter=String
MeasureName=MeasureAlbum
Y=0R
InlineSetting=Size | 12
InlineSetting2=Color | 40,148,181,255
W=150
ClipString=2
ClipStringH=45
AntiAlias=1
1.png
You do not have the required permissions to view the files attached to this post.
User avatar
thefallenyogurt
Posts: 9
Joined: December 24th, 2016, 1:52 pm

Re: Relative Positioning of String to stick together closer.

Post by thefallenyogurt »

jsmorley wrote:You could use ClipString=2 and ClipStringH to set a "maximum" height, while not forcing a particular height.

Code: Select all

[MeterOne]
Meter=String
MeasureName=MeasureSong
InlineSetting=Size | 15
W=150
ClipString=2
ClipStringH=45
AntiAlias=1

[MeterTwo]
Meter=String
MeasureName=MeasureAlbum
Y=0R
InlineSetting=Size | 12
W=150
ClipString=2
ClipStringH=45
AntiAlias=1
https://docs.rainmeter.net/manual-beta/meters/string/#ClipString

https://docs.rainmeter.net/manual-beta/meters/string/#ClipStringH


That didn't seem to work..
Image
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Relative Positioning of String to stick together closer.

Post by jsmorley »

You need to adjust ClipStringH so that the "maximum" is at least tall enough to hold an entire 2, 3, 4 lines as you wish. If it is even one pixel too "short" to fit the entire character (which will depend on the size of the font you use) it will not "wrap". Be sure you don't have a conflict between FontSize in your MeterStyle, and the InlineSetting on the meter.
User avatar
fonpaolo
Moderator
Posts: 1387
Joined: April 11th, 2013, 8:08 pm
Location: Italy

Re: Relative Positioning of String to stick together closer.

Post by fonpaolo »

Sorry jsmorley to partially derail the thread, however, I have a question regarding InlineSetting.

Maybe I miss something, but I was trying to manage the line spacing using InlineSetting and it's not possible: I'm I wrong? :oops:
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Relative Positioning of String to stick together closer.

Post by jsmorley »

fonpaolo wrote:Sorry jsmorley to partially derail the thread, however, I have a question regarding InlineSetting.

Maybe I miss something, but I was trying to manage the line spacing using InlineSetting and it's not possible: I'm I wrong? :oops:
There is no setting for line or paragraph spacing available. That is entirely controlled by the metrics of the font itself.
User avatar
thefallenyogurt
Posts: 9
Joined: December 24th, 2016, 1:52 pm

Re: Relative Positioning of String to stick together closer.

Post by thefallenyogurt »

jsmorley wrote:You need to adjust ClipStringH so that the "maximum" is at least tall enough to hold an entire 2, 3, 4 lines as you wish. If it is even one pixel too "short" to fit the entire character (which will depend on the size of the font you use) it will not "wrap". Be sure you don't have a conflict between FontSize in your MeterStyle, and the InlineSetting on the meter.
Set it to 100 , 500 , 1000 (LOL) still didn't work...
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Relative Positioning of String to stick together closer.

Post by jsmorley »

thefallenyogurt wrote:Set it to 100 , 500 , 1000 (LOL) still didn't work...
Make sure you have ClipString=2 and not ClipString=1
1.png
In a conflict like that, "first wins".
You do not have the required permissions to view the files attached to this post.
User avatar
thefallenyogurt
Posts: 9
Joined: December 24th, 2016, 1:52 pm

Re: Relative Positioning of String to stick together closer.

Post by thefallenyogurt »

jsmorley wrote:Make sure you have ClipString=2 and not ClipString=1

1.png

In a conflict like that, "first wins".

Yes! that worked ( I had to instances of ClipString. Silly me ) Thank you so much jsmorlry. I appreciate your time :D Have a nice day mate. :thumbup:
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Relative Positioning of String to stick together closer.

Post by jsmorley »

thefallenyogurt wrote:Yes! that worked ( I had to instances of ClipString. Silly me ) Thank you so much jsmorlry. I appreciate your time :D Have a nice day mate. :thumbup:
You too. Merry Christmas!
User avatar
thefallenyogurt
Posts: 9
Joined: December 24th, 2016, 1:52 pm

Re: Relative Positioning of String to stick together closer.

Post by thefallenyogurt »

jsmorley wrote:You too. Merry Christmas!
Merry Christmas !