(EDIT) Suggestion submitted here https://forum.rainmeter.net/viewtopic.php?t=40295
Is it possible at all to set a body of text to be in full justification/alignment so that there are straight edges on both left and right?
Example here on the far right:
It is currently April 26th, 2024, 9:12 pm
Word Spacing To Achieve Straight Column Edges On Each Side
-
- Posts: 18
- Joined: June 17th, 2020, 4:00 am
Word Spacing To Achieve Straight Column Edges On Each Side
Last edited by nesherman on March 25th, 2022, 3:15 pm, edited 1 time in total.
-
- Rainmeter Sage
- Posts: 16174
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Word Spacing To Achieve Straight Column Edges On Each Side
No, unfortunately I think this is not possible in Rainmeter. But Rainmeter isn't even meant to show extremely long texts.
-
- Rainmeter Sage
- Posts: 7175
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: Word Spacing To Achieve Straight Column Edges On Each Side
As balala said, unfortunately this is not possible in Rainmeter, though it would be an excellent feature to have. One could manually simulate justification by replacing normal spaces in the string with Unicode spaces of suitable widths (I've done that on a limited fashion), or using monospaced fonts and add spaces where you see fit, but doing that for any possible scenario would be extremely effort and time consuming, thus unfeasible.
In a limited fashion though, for a fixed font and relatively fixed and shorter string, this is definitely possible, though you'd have to do it on a trial and error basis.
In a limited fashion though, for a fixed font and relatively fixed and shorter string, this is definitely possible, though you'd have to do it on a trial and error basis.
-
- Rainmeter Sage
- Posts: 16174
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Word Spacing To Achieve Straight Column Edges On Each Side
What? Not possible? How so?Yincognito wrote: ↑March 24th, 2022, 7:58 pm As balala said, unfortunately this is not possible in Rainmeter,
(Sorry, couldn't resist!)
-
- Rainmeter Sage
- Posts: 7175
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: Word Spacing To Achieve Straight Column Edges On Each Side
No problem, I like to laugh and catch folks on the wrong foot too.
However, if we're being pedantic and all, you'll notice that there is a nuance there in my post. What I meant there is that it isn't possible in an automatic way, in a built-in option, but like explained, is entirely possible if one is willing to make the effort and the scenario is favorable.
But ok, I'll be generous and admit that you catched me saying the unthinkable. Nice catch, by the way - loved it.
-
- Rainmeter Sage
- Posts: 16174
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Word Spacing To Achieve Straight Column Edges On Each Side
Yincognito wrote: ↑March 24th, 2022, 9:17 pm No problem, I like to laugh and catch folks on the wrong foot too.
However, if we're being pedantic and all, you'll notice that there is a nuance there in my post. What I meant there is that it isn't possible in an automatic way, in a built-in option, but like explained, is entirely possible if one is willing to make the effort and the scenario is favorable.
But ok, I'll be generous and admit that you catched me saying the unthinkable. Nice catch, by the way - loved it.
-
- Posts: 18
- Joined: June 17th, 2020, 4:00 am
Re: Word Spacing To Achieve Straight Column Edges On Each Side
Is this to say that it would be impossible to add sometime in the future?Yincognito wrote: ↑March 24th, 2022, 7:58 pm As balala said, unfortunately this is not possible in Rainmeter, though it would be an excellent feature to have.
-
- Rainmeter Sage
- Posts: 7175
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: Word Spacing To Achieve Straight Column Edges On Each Side
Now that I think about it, maybe it could be made (semi) automatic using either Lua or the inline character spacing...
Adjusting that based on font might be tricky, but theoretically it could be done. Hmmm ... I'll have to think about it.
-
- Rainmeter Sage
- Posts: 16174
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Word Spacing To Achieve Straight Column Edges On Each Side
Think and let me know what could you figure out.
-
- Rainmeter Sage
- Posts: 7175
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: Word Spacing To Achieve Straight Column Edges On Each Side
That is up for the developers to answer, but you can post such a suggestion in the Bugs & Feature Suggestion section of the forum at any time. Personally I would support it and probably many of of us would, but when it comes to technicalities regarding how Rainmeter is programmed, the developers have the last word.