Refactored with text_font class