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

Help: Rainmeter Skins • Re: Need better way to automatically change background Height

$
0
0
This would be manual approach for a give font name:

Code:

[MeasureTextH]Measure=CalcFormula=([MeterComputerName:H]/15)DynamicVariables=1UpdateDivider=-1[MeterComputerName]Y=([MeterBackground:H] / 2 + ([&MeasureTextH]))
Based on my calculating, 15 is the amount of descending empty space you need to chop the UPPERSCALE text to the *perceived* center point in the ARIAL font. This will let you proportionally center the perceived height of the upperscale text.
I have tested it and I always get the good visually perceived centering no matter which FontSize I specify.
This will however be limited to Arial font.
(there is no math behind the number 15, I just plugged in that number and it worked)
Curious, why is it limited to Arial? Because of your calculation with Arial. If I used another font could I adjust the "15" to work? I plan on using Open Sans.

Statistics: Posted by Sh8dyDan — Today, 12:20 am



Viewing all articles
Browse latest Browse all 1134

Trending Articles