Re: InlinePattern now defaults to .*
Posted: February 16th, 2016, 5:36 pm
We made a small change that makes the InlinePattern option of String meters to default to .*
This means that if you want the entire string to use the new inline options, you no longer need to define a pattern in your skins. The entire string will use the inline option.
So the following would now be valid:
This would make the entire string italic at font size 15 with a 900 bold value (assuming the font supports it, and if it doesn't, it will get as close to 900 as it can).
Here is documentation for the String meter's Inline Settings: https://docs.rainmeter.net/manual-beta/meters/string/inline/
In my view, this is an important change.
The reason is that as I see it, this entirely "deprecates" any need for the following options on String meters:
FontFace
FontSize
FontColor
StringStyle
The InlineSetting equivalents of these options are just as easy to use, and FAR, FAR more flexible and powerful.
The change to make the default for InlinePattern(N) be .* further makes this true, as you no longer have to specify a matching InlinePattern=.* in order to simply set the entire string to the desired option.
There is just no benefit to using:
StringStyle=Bold
When
InlineSetting=Weight | 600
is just as easy, and a hundred times more powerful, since you then have the entire range of weights the font supports available, and not just "Bold" or "Normal".
In addition, keep in mind that things like StringStyle can only have one option on a meter. You can use as many numbered InlineSetting options as you like, with the added benefit that if you DO use InlinePattern, you have complete control over what parts of the string get what format.
This means that if you want the entire string to use the new inline options, you no longer need to define a pattern in your skins. The entire string will use the inline option.
So the following would now be valid:
Code: Select all
[SomeStringMeter]
...
InlineSetting=Weight | 900
InlineSetting2=Italic
InlineSetting3=Size | 15
Here is documentation for the String meter's Inline Settings: https://docs.rainmeter.net/manual-beta/meters/string/inline/
In my view, this is an important change.
The reason is that as I see it, this entirely "deprecates" any need for the following options on String meters:
FontFace
FontSize
FontColor
StringStyle
The InlineSetting equivalents of these options are just as easy to use, and FAR, FAR more flexible and powerful.
The change to make the default for InlinePattern(N) be .* further makes this true, as you no longer have to specify a matching InlinePattern=.* in order to simply set the entire string to the desired option.
There is just no benefit to using:
StringStyle=Bold
When
InlineSetting=Weight | 600
is just as easy, and a hundred times more powerful, since you then have the entire range of weights the font supports available, and not just "Bold" or "Normal".
In addition, keep in mind that things like StringStyle can only have one option on a meter. You can use as many numbered InlineSetting options as you like, with the added benefit that if you DO use InlinePattern, you have complete control over what parts of the string get what format.