Was able to reproduce the error by pasting the script into the script editor in multiple versions of nuke across multiple operating systems.
Will produce no value. "# Result: None"
NukeX 10.5v4 - Linux CentOS 6.9 - MacOS 10.12.3 - OSX 10.11.6 - Windows 10
NukeX 10.0v5 - Linux CentOS 6.9 - Windows 10
================================================
Will return a value of 11 regardless of the font size.
"# Result: 11.0" (regardless of what the font size has been adjusted too in preferences)
NukeX 9.0v9 - Linux CentOS 6.9 - Windows 10 - OSX 10.11.6
Nuke 9.0v1 - Linux CentOS 6.9 - Windows 10
================================================
Worked as intended and prints the correct font size value.
"# Result: 20.0" (when font has been changed to 20 in preferences)
Nuke 8.0v7 - Windows 10 - MacOS 10.12.3 - Linux CentOS 6.9
Nuke 8.0v1 - Linux CentOS 6.9 - Windows 10 - OSX 10.11.6
Expected behaviour
Nuke would correctly print the font size in the script editor.
Actual behaviour
Nuke would not print the font size of the script editor.