Set font support

Implements the set_font method in QWidget and fixes a bug in parse_fonts.