refactored font parsing, added medium font