Dim p as Picture
p = New Picture(100,100, 32)
p.Graphics.TextFont = “Verdana”
p.Graphics.TextSize = 12
MsgBox str(p.Graphics.StringHeight(“Test 123”,100))
MsgBox str(p.Graphics.Stringwidth(“Test 123”))
Desktop: 14 (correct)
Why there are different values?
Stephan, did you figure out why? I have the same problem.
StringHeight and most graphics on a web app will most probably not even work if the app is installed on a regular CentOS or Linux flavor, because it has no UI, therefore no fonts.
If the app runs on Mac, Windows or a LInux Box with UI, then chances are stringwidth will work.
Web and Desktop apps use different libraries.
So the result will always be different.
Thank you Michel and Christian.
Learning something new every day