I'm currently working on a resizable menu, and had my fontsize scaled with (size*scale), which works, but creates this issue where the text would only react to certain whole numbers of fontsize. Therefore I wanted to create smooth resizing with transformation matrix.
Scaling with font size: Current test code with transformation matrix scaling:
Code: Select all
[Rainmeter]
SkinWidth=700
SkinHeight=400
[Variables]
Set.P=(20*[Set.S])
Scroll=0
[Set.S]
Measure=Calc
Formula=1
[Set.String:S]
AntiAlias=1
SolidColor=0,0,0,1
DynamicVariables=1
[Back]
Meter=String
W=700
H=400
SolidColor=255,255,255,50
[Class.Text1]
Meter=String
MeterStyle=Set.String:S
Text=JaxCore3
X=(#Set.P#)
Y=(#Set.P#+10*[Set.S]+#Scroll#)
FontSize=60
FontFace=Poppins SemiBold
StringAlign=LeftTop
InlineSetting=GradientColor | 180 | CC1C15 ; 0.0 | FF700F ; 1.0
TransformationMatrix=[Set.S];0;0;[Set.S];((1-[Set.S])*[#CURRENTSECTION#:X]);((1-[Set.S])*[#CURRENTSECTION#:Y])
[Class.Text2]
Meter=String
MeterStyle=Set.String:S
Text=Welcome to JaxOriginals' configuration hub.
X=r
Y=R
FontSize=16
TransformationMatrix=[Set.S];0;0;[Set.S];((1-[Set.S])*[#CURRENTSECTION#:X]);((1-[Set.S])*[#CURRENTSECTION#:Y])
StringAlign=LeftTop
FontColor=#Set.SubText_Color#
Another thing I am curious about is would transformation matrix take up a high amount of resource usage? If that is the case I would not use that for scaling then.