Quotes & $width()/$height - 08/12/11 11:31 PM
If you surround the font-name in quotes, mIRC fails to see it as a fontname that may contain multiple spaces, and reverts to the font set in the options dialog:Echos the following:
Code to test on your own:
Code:
;This returns the width correctly echo -a Without Quotes: $width(I am testing,Dejavu Sans Mono,50) ;This does not echo -a With Quotes: $width(I am testing,"Dejavu Sans Mono",50)
Quote:
Without Quotes: 360
With Quotes: 259
With Quotes: 259
Code to test on your own:
Code:
alias widthtest { var %f = $window($active).font var %s = $window($active).fontsize echo -a Without quotes(Correct): $width(#,%f,%s) echo -a With Quotes(Incorrect): $width(#,$qt(%f),%s) }