def QFont_from_Font(font):
    qfont = QFont(font.family, font.pointsize, font.weight)
    qfont.setStyle(font.style)
    qfont.setCapitalization(font.caps)
    return qfont
Convert the given Enaml Font into a QFont.
dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/qt/q_resource_helpers.py/QFont_from_Font