Moved font handling to own file