Skip to content

Instantly share code, notes, and snippets.

@lysylbn
Last active August 4, 2024 22:15
Show Gist options
  • Save lysylbn/6db4aea3aa6e2dfda4730e39e0994340 to your computer and use it in GitHub Desktop.
Save lysylbn/6db4aea3aa6e2dfda4730e39e0994340 to your computer and use it in GitHub Desktop.
Rainmeter skin / tool that lets you easily preview Fonts, their effects and styles with InlineSettings. Needs [RainRGB4]{https://forum.rainmeter.net/viewtopic.php?t=6215) in Resources folder for full funcionality.
[Rainmeter]
BackgroundMode=2
SolidColor=#ColorBG#,#AlphaBG#
AccurateText=1
Update=-1
MiddleMouseUpAction=!Refresh
RightMouseUpAction=!SkinCustomMenu
ContextTitle="❶ abc 123 !@#"
ContextAction=[!WriteKeyValue Variables TN 1 "#CURRENTPATH##CURRENTFILE#"][!Refresh]
ContextTitle2="❷ Aa Bb Cc"
ContextAction2=[!WriteKeyValue Variables TN 2 "#CURRENTPATH##CURRENTFILE#"][!Refresh]
ContextTitle3="❸ Lazy Fox"
ContextAction3=[!WriteKeyValue Variables TN 3 "#CURRENTPATH##CURRENTFILE#"][!Refresh]
ContextTitle4="❹ Lorem Ipsum"
ContextAction4=[!WriteKeyValue Variables TN 4 "#CURRENTPATH##CURRENTFILE#"][!Refresh]
ContextTitle5="❺ Mark Twain Quote"
ContextAction5=[!WriteKeyValue Variables TN 5 "#CURRENTPATH##CURRENTFILE#"][!Refresh]
ContextTitle6="❻ Albert Einstein Quote"
ContextAction6=[!WriteKeyValue Variables TN 6 "#CURRENTPATH##CURRENTFILE#"][!Refresh]
ContextTitle7="❼ Wise Guy Quote"
ContextAction7=[!WriteKeyValue Variables TN 7 "#CURRENTPATH##CURRENTFILE#"][!Refresh]
[Metadata]
Name=Font Tester
Author=lysy1993lbn
Information=Tool to let you easily preview Fonts, their effects and styles with InlineSettings. Get support @Rainmeter Forum https://forum.rainmeter.net/viewtopic.php?t=25265
Version=1.3.1
[Variables]
;Background Color
ColorBG=22,22,22
AlphaBG=255
;Preview Text
TN=1
Text1="abcdefghijklmnoprstuwxyz 0123456789 .:,; ' " (!?) +-*/= #@£$€%^& {~¬} [<>] |\/ ↓ ↑"
Text2="Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Rr Ss Tt Uu Ww Xx Yy Zz"
Text3="The quick brown dog jumps over a lazy fox. 1234567890"
Text4="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
Text5="”The two most important days in your life are the day you are born and the day you find out why.” - Mark Twain"
Text6="”We can't solve problems by using the same kind of thinking we used when we created them.” - Albert Einstein"
Text7="”Never argue with an idiot, he will drag you down to his level and beat you with experience.” - Some Wise Guy"
;Variables for InlineSettings
Font=bahnschrift
Color=255,255,255
TextAlpha=255
Size=24
IS2=none
Case=none
Stretch=5
CS=0
;Skin Function Varialbes
UR=[!Update][!Redraw]
[Style]
InlineSetting=Face | #Font#
InlineSetting2=Size | #Size#
InlineSetting3=Color | #Color#,#TextAlpha#
InlineSetting4=Weight | #CURRENTSECTION#
InlineSetting5=Stretch | #Stretch#
InlineSetting6=CharacterSpacing | #CS#
InlineSetting7=#IS2#
InlineSetting8=Case | #Case#
Text=[#Text[#TN]]
AntiAlias=1
Padding=10, 0, 10, 10
PreFix=#CURRENTSECTION# • 
Y=(#Size#*2)r
DynamicVariables=1
Group=Preview
LeftMouseUpAction=[!SetClip """[Text]#CRLF#Meter=String#CRLF#AntiAlias=1#CRLF#InlineSetting=Face | #Font##CRLF#InlineSetting2=Size | #Size##CRLF#InlineSetting3=Color | #Color#,#TextAlpha##CRLF#InlineSetting4=Weight | #CURRENTSECTION##CRLF#InlineSetting5=Stretch | #Stretch##CRLF#InlineSetting6=CharacterSpacing | #CS##CRLF#InlineSetting7=#IS2##CRLF#InlineSetting8=Case | #Case#"""]
;Style for Menu
[StyleM]
InlineSetting=Face | Segoe UI Symbol | Segoe UI
InlineSetting2=Size | 12
InlineSetting3=Color | 255,255,255
InlineSetting4=Case | Upper
InlineSetting5=Weight | 800
;InlineSetting6=Shadow | 0 | 0 | 1.5 | 0,0,0
StringEffect=Border
FontEffectColor=0,0,0,170
AntiAlias=1
Padding=10, 0, 10, 0
Text=#CURRENTSECTION#
DynamicVariables=1
y=r
[Dropdown]
SolidColor=20,20,20
Text=#CURRENTSECTION#
Padding=14, 6, 14, 6
Group=Dropdown
LeftMouseUpAction=[!WriteKeyValue Variables Stretch "#CURRENTSECTION#" "#CURRENTPATH##CURRENTFILE#"][!Refresh]
MiddleMouseUpAction=[!HideMeterGroup Dropdown][!HideMeterGroup Dropdown2][!HideMeterGroup Dropdown3][!Redraw]
MouseOverAction=[!SetOption #CURRENTSECTION# SolidColor "50,50,50"][!UpdateMeter #CURRENTSECTION#"][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# SolidColor ""][!UpdateMeter #CURRENTSECTION#][!Redraw]
StringAlign=Center
Hidden=1
W=150
Y=30r
X=r
TooltipText=Left Click to save & apply#CRLF#Middle Click to cancel
[Dropdown2]
LeftMouseUpAction=[!WriteKeyValue Variables Case "#CURRENTSECTION#" "#CURRENTPATH##CURRENTFILE#"][!Refresh]
InlineSetting4=Case | #CURRENTSECTION#
Group=Dropdown2
[Dropdown3]
LeftMouseUpAction=[!WriteKeyValue Variables IS2 "#CURRENTSECTION#" "#CURRENTPATH##CURRENTFILE#"][!Refresh]
InlineSetting6=#CURRENTSECTION#
Group=Dropdown3
W=110
;Measures
[MeasureRunRainRGBFont]
Measure=Plugin
Plugin=RunCommand
Program=""#@#RainRGB4.exe""
Parameter=""VarName=Color" "FileName=#CURRENTPATH##CURRENTFILE#" "RefreshConfig=#CURRENTCONFIG#""
OutputType=ANSI
[MeasureRunRainRGBBackground]
Measure=Plugin
Plugin=RunCommand
Program=""#@#RainRGB4.exe""
Parameter=""VarName=ColorBG" "FileName=#CURRENTPATH##CURRENTFILE#" "RefreshConfig=#CURRENTCONFIG#""
OutputType=ANSI
;Meters
;Menu
[Face]
Meter=String
MeterStyle=StyleM
PostFix=: #Font#
y=10
LeftMouseUpAction=[!CommandMeasure Input "ExecuteBatch ALL"]
ToolTipText=Click to edit.
[Input]
Measure=Plugin
DefaultValue=#Font#
Plugin=InputText
MeterStyle=StyleM
Y=10
X=50
W=200
H=24
SolidColor=#ColorBG#
FontFace=Segoe UI
FontColor=255,255,255
FontSize=10
Command1=[!WriteKeyValue Variables Font "$UserInput$" "#CURRENTPATH##CURRENTFILE#"][!Refresh]
[Size]
Meter=String
MeterStyle=StyleM
PostFix=: #Size#
x=([Face:W]+10)r
MouseScrollUpAction=[!SetVariable Size "(clamp(#Size#+1,6,200))"]#UR#
MouseScrollDownAction=[!SetVariable Size "(clamp(#Size#-1,6,200))"]#UR#
LeftMouseUpAction=[!WriteKeyValue Variables Size #Size# "#CURRENTPATH##CURRENTFILE#"]
ToolTipText=Use Scroll Wheel to adjust size#CRLF#Left Mouse Click to Save Persistently
[Color]
Meter=String
MeterStyle=StyleM
InlineSetting6=Color | #Color#
InlinePattern6=:(.*)
PostFix=: #Color#,#TextAlpha#
x=([Size:W]+10)r
LeftMouseUpAction=[!CommandMeasure MeasureRunRainRGBFont "Run"]
MouseScrollUpAction=[!SetVariable TextAlpha "(clamp(#TextAlpha#+5,0,255))"]#UR#
MouseScrollDownAction=[!SetVariable TextAlpha "(clamp(#TextAlpha#-5,0,255))"]#UR#
RightMouseUpAction=[!WriteKeyValue Variables TextAlpha #TextAlpha# "#CURRENTPATH##CURRENTFILE#"]
ToolTipText=Left Click to select color with RainRBG#CRLF#Use Scroll Wheel to adjust alpha, Right Click to save
[Stretch]
Meter=String
MeterStyle=StyleM
InlineSetting6=Size | 8
InlinePattern6=▼
PostFix=: #Stretch# ▼
x=([Color:W]+10)r
LeftMouseUpAction=[!ShowMeterGroup Dropdown]#UR#
[Case]
Meter=String
MeterStyle=StyleM
InlineSetting6=Size | 8
InlinePattern6=▼
PostFix=: #Case# ▼
x=([Stretch:W]+10)r
LeftMouseUpAction=[!ShowMeterGroup Dropdown2]#UR#
[Effect]
Meter=String
MeterStyle=StyleM
InlineSetting6=Size | 8
InlinePattern6=▼
PostFix=: #IS2# ▼
x=([Case:W]+10)r
LeftMouseUpAction=[!ShowMeterGroup Dropdown3]#UR#
[Character Spacing]
Meter=String
MeterStyle=StyleM
PostFix=: #CS#
x=([Effect:W]+10)r
MouseScrollUpAction=[!SetVariable CS "(clamp(#CS#+0.1,-10,15))"]#UR#
MouseScrollDownAction=[!SetVariable CS "(clamp(#CS#-0.1,-10,15))"]#UR#
LeftMouseUpAction=[!WriteKeyValue Variables CS #CS# "#CURRENTPATH##CURRENTFILE#"][!Refresh]
ToolTipText=Use Scrool Wheel to change#CRLF#Left Click to save persistently
[Background]
Meter=String
MeterStyle=StyleM
PostFix=: #AlphaBG#
x=([Character Spacing:W]+10)r
MouseScrollUpAction=[!SetVariable AlphaBG "(clamp(#AlphaBG#+5,0,255))"]#UR#
MouseScrollDownAction=[!SetVariable AlphaBG "(clamp(#AlphaBG#-5,0,255))"]#UR#
RightMouseUpAction=[!WriteKeyValue Variables AlphaBG #AlphaBG# "#CURRENTPATH##CURRENTFILE#"][!Refresh]
LeftMouseUpAction=[!CommandMeasure MeasureRunRainRGBBackground "Run"]
ToolTipText="Left Click to change background color#CRLF#Use Scrool Wheel to change it's alpha, then Left Click to save & apply"
[]
Meter=String
MeterStyle=StyleM
;x=36r
x=([Background:W]+20)r
y=5
LeftMouseUpAction=[!WriteKeyValue Variables color "255,255,255" "#CURRENTPATH##CURRENTFILE#"][!WriteKeyValue Variables TextAlpha "255" "#CURRENTPATH##CURRENTFILE#"][!WriteKeyValue Variables IS2 "none" "#CURRENTPATH##CURRENTFILE#"][!WriteKeyValue Variables Case "none" "#CURRENTPATH##CURRENTFILE#"][!WriteKeyValue Variables Stretch "5" "#CURRENTPATH##CURRENTFILE#"][!WriteKeyValue Variables CS "0" "#CURRENTPATH##CURRENTFILE#"][!Refresh]
MiddleMouseUpAction=[!WriteKeyValue Variables Color "255,255,255" "#CURRENTPATH##CURRENTFILE#"][!WriteKeyValue Variables TextAlpha "255" "#CURRENTPATH##CURRENTFILE#"][!WriteKeyValue Variables Size "24" "#CURRENTPATH##CURRENTFILE#"][!Refresh]
RightMouseUpAction=[!WriteKeyValue Variables ColorBG "22,22,22" "#CURRENTPATH##CURRENTFILE#"][!WriteKeyValue Variables AlphaBG "255" "#CURRENTPATH##CURRENTFILE#"][!Refresh]
InlineSetting2=Size | 16
TooltipText=Left Click to reset all InlineSettings#CRLF#Middle Click to reset text color, alpha & size#CRLF#Right Click to reset Background color & alpha
[]
Meter=String
MeterStyle=StyleM
x=36r
LeftMouseUpAction=[!ActivateConfig "FontTester" "icon.ini"]
RightMouseUpAction=!SkinMenu
InlineSetting2=Size | 16
;Actual Skin Content
[100]
Meter=String
MeterStyle=Style
Y=35r
[200]
Meter=String
MeterStyle=Style
[300]
Meter=String
MeterStyle=Style
[400]
Meter=String
MeterStyle=Style
[500]
Meter=String
MeterStyle=Style
[600]
Meter=String
MeterStyle=Style
[700]
Meter=String
MeterStyle=Style
[800]
Meter=String
MeterStyle=Style
[900]
Meter=String
MeterStyle=Style
[950]
Meter=String
MeterStyle=Style
[1]
Meter=String
MeterStyle=StyleM | Dropdown
X=([Stretch:X]+([Stretch:W]/2))
Y=([Stretch:Y]+24)
Postfix= Ultra-Condensed
InlineSetting6=Stretch | #CURRENTSECTION#
[2]
Meter=String
MeterStyle=StyleM | Dropdown
Postfix= Extra-Condensed
InlineSetting6=Stretch | #CURRENTSECTION#
[3]
Meter=String
MeterStyle=StyleM | Dropdown
Postfix= Condensed
InlineSetting6=Stretch | #CURRENTSECTION#
[4]
Meter=String
MeterStyle=StyleM | Dropdown
Postfix= Semi-Condensed
InlineSetting6=Stretch | #CURRENTSECTION#
[5]
Meter=String
MeterStyle=StyleM | Dropdown
Postfix= Normal
InlineSetting6=Stretch | #CURRENTSECTION#
[6]
Meter=String
MeterStyle=StyleM | Dropdown
Postfix= Semi-Expanded
InlineSetting6=Stretch | #CURRENTSECTION#
[7]
Meter=String
MeterStyle=StyleM | Dropdown
Postfix= Expanded
InlineSetting6=Stretch | #CURRENTSECTION#
[8]
Meter=String
MeterStyle=StyleM | Dropdown
Postfix= Extra-Expanded
InlineSetting6=Stretch | #CURRENTSECTION#
[9]
Meter=String
MeterStyle=StyleM | Dropdown
Postfix= Ultra-Expanded
InlineSetting6=Stretch | #CURRENTSECTION#
[none]
Meter=String
MeterStyle=StyleM | Dropdown | Dropdown2
X=([Case:X]+([Case:W]/2))
Y=([Case:Y]+24)
[lower]
Meter=String
MeterStyle=StyleM | Dropdown | Dropdown2
[upper]
Meter=String
MeterStyle=StyleM | Dropdown | Dropdown2
[proper]
Meter=String
MeterStyle=StyleM | Dropdown | Dropdown2
[sentence]
Meter=String
MeterStyle=StyleM | Dropdown | Dropdown2
[off]
Meter=String
LeftMouseUpAction=[!WriteKeyValue Variables IS2 none "#CURRENTPATH##CURRENTFILE#"][!Refresh]
Text=None
MeterStyle=StyleM | Dropdown | Dropdown3
X=([Effect:X]+([Effect:W]/2))
Y=([Effect:Y]+24)
[italic]
Meter=String
MeterStyle=StyleM | Dropdown | Dropdown3
[oblique]
Meter=String
MeterStyle=StyleM | Dropdown | Dropdown3
[underline]
Meter=String
MeterStyle=StyleM | Dropdown | Dropdown3
[strikethrough]
Meter=String
MeterStyle=StyleM | Dropdown | Dropdown3
[Rainmeter]
UPDATE=-1
[Variables]
Size=64
Gradient=90 | 30,30,30 ; 0 | 70,70,70 ; 1
[BG]
Meter=Shape
Shape=Rectangle 2,2,#size#,#size#,(#size#/10) | Fill LinearGradient BGG | StrokeWidth 2 | Stroke Color 20,20,20
BGG=#Gradient#
MiddleMouseUpAction=!Refresh
LeftMouseUpAction=[!ActivateConfig "FontTester" "FontTester.ini"]
MouseScrollUpAction=[!SetVariable Size "(clamp(#Size#+1,16,512))"][!Update][!Redraw]
MouseScrollDownAction=[!SetVariable Size "(clamp(#Size#-1,16,512))"][!Update][!Redraw]
RightMouseUpAction=[!WriteKeyValue Variables Size "#Size#" "#CURRENTPATH##CURRENTFILE#"][!Refresh]
DynamicVariables=1
TooltipTitle=FontTester
TooltipText=Change icon's size with Scroll Wheel#CRLF#Right Click to save#CRLF##Size#
MouseOverAction=[!SetVariable Gradient "90 | 50,50,50 ; 0 | 90,90,90 ; 1"][!Update][!Redraw]
MouseLeaveAction=[!SetVariable Gradient "90 | 30,30,30 ; 0 | 70,70,70 ; 1"][!Update][!Redraw]
[String]
Meter=String
AntiAlias=1
InlineSetting=Face | Arial
InlineSetting2=Size | (#size#/2)
InlineSetting3=Color | 20,20,20
InlineSetting4=Weight | 700
InlineSetting5=Shadow | 0 | 1 | 1 | 255,255,255,30
Text=Aa
X=(#size#/2)
Y=(#size#/2)
StringAlign=CenterCenter
DynamicVariables=1
@lysylbn
Copy link
Author

lysylbn commented Aug 2, 2024

CSoftwareRainmeterSkinsFontTesterFontTester ini 7_t1

@lysylbn
Copy link
Author

lysylbn commented Aug 2, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment