Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1538

Help: Rainmeter Skins • Re: Shape Modifiers

$
0
0
For example, depending ion the width of a text meter?

Hi, [sl23] :amazed :cheer:

Do I understand this correctly? Your shape form or container should be based on the size of the entered text?
Maybe this from [balala] will helps you?

https://forum.rainmeter.net/viewtopic.php?t=34065


Instead of applying the size to FontSize, you could apply it to the container like this:
The more text, the larger the image will be in W. (I think there is a better way...)

Code:

[Rainmeter]Update=-1AccurateText=1[Variables]Text=This is a Text String of many Letters.[MeasureString]Measure=StringString=#Text#RegExpSubstitute=1Substitute="(.)":"0","^(.)":"1"[MeasureLength]Measure=CalcFormula=( 1 + Log ( [MeasureString] ))Substitute="inf":"too many"DynamicVariables=1[MeasureSize]Measure=CalcFormula=( 1600 / [MeasureLength] )DynamicVariables=1[MeterString]Meter=STRINGX=0Y=0FontColor=220,220,220FontEffectColor=0,0,0StringEffect=ShadowFontSize=15FontFace=Segoe UIStringStyle=BOLDStringAlign=LEFTAntiAlias=1Text=#Text#DynamicVariables=1[MeterImage2]Meter=ImageSolidColor=255,255,255,255X=5Y=50W=(15*[MeasureLength])H=50DynamicVariables=1

Statistics: Posted by Rooky_89 — 40 minutes ago



Viewing all articles
Browse latest Browse all 1538

Trending Articles