It is currently December 5th, 2021, 2:57 am

4.5.5 - Added TrailingSpaces option

Changes made during the Rainmeter 4.5 Release Cycle
User avatar
jsmorley
Developer
Posts: 22416
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

4.5.5 - Added TrailingSpaces option

Post by jsmorley »

Added a new TrailingSpaces option to the String meter.

When this is set to 1, any Text option that is enclosed in "quotes" will display leading and trailing spaces.

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1

[Variables]

[MeterOne]
Meter=String
FontSize=11
FontWeight=400
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
TrailingSpaces=1
Text="        This has leading and trailing spaces        "

1.png
You do not have the required permissions to view the files attached to this post.
User avatar
death.crafter
Rainmeter Sage
Posts: 1205
Joined: April 24th, 2021, 8:13 pm

Re: 4.5.5 - Added TrailingSpaces option

Post by death.crafter »

And this one doesn't have them.

Code: Select all

[MeterOne]
Meter=String
FontSize=11
FontWeight=400
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
TrailingSpaces=0
Text="        This has leading and trailing spaces        "
Screenshot 2021-11-17 195655.png
You do not have the required permissions to view the files attached to this post.
from the Realm of Death
User avatar
Active Colors
Moderator
Posts: 919
Joined: February 16th, 2012, 3:32 am
Location: Berlin, Germany

Re: 4.5.5 - Added TrailingSpaces option

Post by Active Colors »

death.crafter wrote: November 17th, 2021, 2:28 pm And this one doesn't have them.

Code: Select all

[MeterOne]
Meter=String
FontSize=11
FontWeight=400
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
TrailingSpaces=0
Text="        This has leading and trailing spaces        "
Screenshot 2021-11-17 195655.png
Rainmeter always showed leading spaces as far as I remember.
Shall there be LeadingSpaces=0 option introduced?
User avatar
jsmorley
Developer
Posts: 22416
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: 4.5.5 - Added TrailingSpaces option

Post by jsmorley »

Active Colors wrote: November 17th, 2021, 2:38 pm Rainmeter always showed leading spaces as far as I remember.
Shall there be LeadingSpaces=0 option introduced?
No... If you don't want leading spaces, don't put them there. ;-)

Code: Select all

[MeterOne]
Meter=String
FontSize=11
FontWeight=400
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
TrailingSpaces=1
Text="This has trailing spaces        "
User avatar
Active Colors
Moderator
Posts: 919
Joined: February 16th, 2012, 3:32 am
Location: Berlin, Germany

Re: 4.5.5 - Added TrailingSpaces option

Post by Active Colors »

jsmorley wrote: November 17th, 2021, 2:43 pm No... If you don't want leading spaces, don't put them there. ;-)

Code: Select all

[MeterOne]
Meter=String
FontSize=11
FontWeight=400
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
TrailingSpaces=1
Text="This has trailing spaces        "
Yep, it is that simple. I just supposed that this case could be similar to the one that death.crafter explained initially when asking for TrailingSpaces feature.
User avatar
David8192
Posts: 138
Joined: July 8th, 2021, 11:30 pm
Location: The King's Avenue, Golden Kingdom

Re: 4.5.5 - Added TrailingSpaces option

Post by David8192 »

Code: Select all

[MeterOne]
Meter=String
FontSize=11
FontWeight=400
FontColor=255,255,255,255
Clipstring=2
ClipstringH=50
ClipstringW=150
SolidColor=47,47,47,255
Padding=5,5,5,5
AntiAlias=1
TrailingSpaces=1
Text="       This has leading and trailing spaces clipped unexpectedly      "
trail.JPG
I get what is happening. I am just wondering if there is way to know how far the space extends in this case?
You do not have the required permissions to view the files attached to this post.
For some Reason, the square root of X2 does not involve X

the DA GALLERY 8-)