Fix calcTextSize
to be used in a static context
#143
Merged
calcTextSize
to be used in a static context
#143