Meter=String displays text.
Options
- General meter options
-
All general meter options are valid.
MeasureName,MeasureName2, ...,MeasureNameN-
Name(s) of the measure(s) bound to the meter. The meter will display the current value of the measure defined in
MeasureName, with values for additional measures bound to the meter available using the%Nsyntax in the Text option.The meter does not require a
MeasureNameNoption if the Text option alone will be used to define the string to display. TextDefault:%1-
Text to display. If
MeasureNameis specified,Textwill default to the value of the measure.The values of the measure(s) specified with
MeasureNamecan be used with the%Nsyntax as follows:MeasureName=SomeMeasure MeasureName2=SomeMeasure2 Text=This is text containing %1 and %2. ; %1 and %2 will be replaced by the string values of SomeMeasure and ; SomeMeasure2, respectively.The
Textoption can take any combination of the following forms:- Display the value of a measure bound with
MeasureName - Display the values of multiple measures bound with
MeasureNameN, and formatted with the%Nsyntax. - Display static text defined in the option.
- Display the current value of any variables or section variables. Note that the meter must contain the DynamicVariables option to use the current value of variables or measures defined as a section variable.
- Display the value of a measure bound with
Prefix-
Text displayed before
Text.Note: It is preferable to put the entire string in
Textinstead of using this option. Postfix-
Text displayed after
Text.Note: It is preferable to put the entire string in
Textinstead of using this option. FontFaceDefault:Arial-
Family name of the font to use for the text. The font must either be installed in Windows directly or must be loaded at runtime.
See also: Fonts Guide.
FontSizeDefault:10-
Size of the font.
FontColorDefault:0,0,0,255-
Color of the font.
StringAlignDefault:Left-
Horizontal and vertical alignment of the string. Valid values are:
Left,Right,Center(orLeftTop,RightTop,CenterTop)LeftBottom,RightBottom,CenterBottomLeftCenter,RightCenter,CenterCenter
The string will be aligned using the values of the
Xand orYsettings as the anchor point. So to CenterCenter align a string within a meter with a width and height of 100, setX=50,Y=50andStringAlign=CenterCenter. StringStyleDefault:Normal-
Style of the string. Valid values are
Normal,Bold,Italic, andBoldItalic. StringCaseDefault:None-
Converts the string to a case. Valid values are
None,Upper,Lower, andProper. StringEffectDefault:None-
Effect applied to a string. Valid values are
None,Shadow, andBorder. FontEffectColorDefault:0,0,0,255-
Color of the StringEffect.
ClipStringDefault:0-
Controls how strings are truncated (clipped) or wrapped to fit in or expand the containing meter. Valid values are:
0: Disabled. The string will not be clipped or wrapped. (default)1: Enabled. The string will be clipped with an added ellipsis...when it exceeds the specifiedW(width) option on the meter. If theH(height) option is large enough to allow multiple lines, the text is wrapped until the value ofHis reached, then clipped.2: Auto. The string will be clipped or wrapped based on the value ofWand/orH. If the width or height are not specified, the meter itself will change size to accommodate the string. This setting works in conjunction with the ClipStringW and ClipStringH options below, to set a "maximum" size that the meter should expand to accomodate the string before clipping.
Note: The changing size of meters when
ClipString=2can cause truncation issues with the overall window size of the skin, unless DynamicWindowSize=1 is set in the [Rainmeter] section of the skin. ClipStringW-
Sets a maximum width that the meter will expand to accommodate the string when
ClipString=2. This setting is ignored if theWoption is set. ClipStringH-
Sets a maximum height that the meter will expand to accommodate the string when
ClipString=2. This setting is ignored if theHoption is set. AngleDefault:0.0-
Defines the angle of the text in radians.
Note: The size and position of the text are always calculated as if the text is horizontal.
PercentualDefault:0-
If set to
1, the value of bound measures are converted to a percentage. This is useful if a measure does not return a percentage value, but either automatically defines a valid "range" of values (e.g. FreeDiskSpace) or when the MinValue and/or MaxValue options are manually set on the measure. NumOfDecimalsDefault:0-
Number of decimals to display with numerical measure values.
ScaleDefault:1-
Scaling factor used for the measure values. The measure value is divided by the specified value. If the specified value has a decimal point (e.g.
1000.0), the result will also display decimals.Note: If
AutoScaleis enabled, this option is ignored. AutoScaleDefault:0-
Automatically scales the measure values. The scaled result is appended with k, M, G, etc. as appropriate. Valid values are:
0: Disabled.1: Scales by 1024.1k: Scales by 1024 with kilo as the lowest unit.2: Scales by 1000.2k: Scales by 1000 with kilo as the lowest unit.
Note: Using the SolidColor option, with a value of SolidColor=0,0,0,1, will give a string meter a solid but virtually transparent background. This can make executing mouse actions on the text easier and more reliable.
Example
[Rainmeter]
Update=1000
[MeasureDate]
Measure=Time
Format=%A, %b %#d, %Y
[MeterDate]
Meter=String
MeasureName=MeasureDate
X=0
Y=0
FontColor=255,255,255,255
FontFace=Segoe UI
FontSize=14
StringEffect=Shadow
FontEffectColor=0,0,0,255
AntiAlias=1
Text=Today is: %1
[MeterText1]
Meter=String
X=0
Y=0R
FontColor=197,239,252,255
FontFace=Segoe UI
FontSize=12
AntiAlias=1
Text=Relative to bottom of previous meter
[MeterText2]
Meter=String
X=300
Y=10R
W=300
H=20
StringAlign=Right
FontColor=255,255,255,255
FontFace=Segoe UI
StringStyle=Italic
FontSize=14
AntiAlias=1
Text=Right justified italic text
[MeterText3]
Meter=String
X=150
Y=5R
W=300
H=20
StringAlign=Center
FontColor=252,245,197,255
FontFace=Segoe UI
StringStyle=Bold
FontSize=14
AntiAlias=1
Text=Centered bold text
[MeterText4]
Meter=String
X=0
Y=10R
W=200
H=50
ClipString=1
FontColor=197,252,223,255
FontFace=Segoe UI
StringStyle=Bold
FontSize=14
AntiAlias=1
Text=This text will wrap due to ClipString=1

An example skin showing various string options.