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

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

$
0
0
I don't see a problem. Can you post a screenshot too?

I assume the problem is in your text. You use the Uppercase string case. The thing is that visually it will not have a height to the visible text like USER. Most of the fonts have a zone for so called "descenders", the hanging from bottom symbol elements like in the letters g j p q y.

To see that, just put SolidColor=200,0,0 and you will see that there is a greater empty zone underneath the USER text, which is what might be causing the unproportional centering.
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 calculation, 15 is the amount of descending empty space you need to chop down 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)

Statistics: Posted by Active Colors — Today, 12:09 am



Viewing all articles
Browse latest Browse all 1489

Trending Articles