Not sure what that code was supposed to do, but all it did was return the exact same fontsize I gave it to start with.

I fail to see the point of $window(whatever).fontsize not returning the font settings value...