This would be manual approach for a give font name: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.
Code:
[MeasureTextH]Measure=CalcFormula=([MeterComputerName:H]/15)DynamicVariables=1UpdateDivider=-1[MeterComputerName]Y=([MeterBackground:H] / 2 + ([&MeasureTextH]))
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