It is currently September 15th, 2024, 10:06 pm
Report bugs with the Rainmeter application and suggest features.
Jax
Posts: 104 Joined: June 7th, 2021, 11:46 am
Post
by Jax » December 5th, 2021, 7:30 am
Line spacing between lines. There isn't a way to add spacing between lines right now without separating the string into multiple string meters.
Maybe something like this?
Code: Select all
[String]
Meter=String
Text=One#CRLF#Two#CRLF#Three
Spacing=10
Infideluxe
Posts: 9 Joined: December 30th, 2021, 1:37 am
Post
by Infideluxe » December 30th, 2021, 11:28 pm
Hi Jax,
(hijacks!)
Good request.
This is a typographical measure called LEADING (but it's pronounced LEDDING; I know, weird). But "Spacing" makes perfect sense as well.
A shorter and more common syntax (in software circles) for what you're asking for would be: One\nTwo\nThree
In the next five minutes, I'm going to request a better KERNING (intercharacter spacing) control as well.
Typographic layout controls are important .
death.crafter
Rainmeter Sage
Posts: 1398 Joined: April 24th, 2021, 8:13 pm
Post
by death.crafter » December 30th, 2021, 11:54 pm
Infideluxe wrote: ↑ December 30th, 2021, 11:28 pm
Hi Jax,
(hijacks!)
Good request.
This is a typographical measure called LEADING (but it's pronounced LEDDING; I know, weird). But "Spacing" makes perfect sense as well.
A shorter and more common syntax (in software circles) for what you're asking for would be: One\nTwo\nThree
In the next five minutes, I'm going to request a better KERNING (intercharacter spacing) control as well.
Typographic layout controls are
important .
There already is, see:
https://docs.rainmeter.net/manual/meters/string/inline/#InlineCharacterSpacing
from the Realm of Death
Infideluxe
Posts: 9 Joined: December 30th, 2021, 1:37 am
Post
by Infideluxe » January 1st, 2022, 8:18 am
Yes! I realized that after I wrote to you.
I had been using it incorrectly, it turns out.
However, I still can't figure out how to use the third parameter.
Thank you.
killall-q
Posts: 307 Joined: August 14th, 2009, 8:04 am
Post
by killall-q » September 22nd, 2022, 1:19 am
I discovered a way to customize line spacing/leading to be anything you wish without needing a new feature.
Code: Select all
[Variables]
FontSize=10
[SomeText]
Meter=String
FontSize=#FontSize#
Text=First line#CRLF#Second line#CRLF#Third line
InlineSetting=Size | (#FontSize#*1.2)
InlinePattern=\R
What we're doing here is adjusting the font size of newline characters.
(#FontSize#*1.2) gives you a gap between each line of font height * 0.2.