Refactored font size calculations
Factored out font functions into own namespace