'Get a Font based on a font description.'

@classmethod
def fromdesc(cls, desc):

    (style, weight, ptsize, pxsize, family) = desc
    f = cls()
    f.setStyle(style)
    f.setWeight(weight)
    if ((ptsize is not None) and (ptsize != (-1))):
        f.setPointSize(ptsize)
    if ((pxsize is not None) and (ptsize != (-1))):
        f.setPixelSize(pxsize)
    f.setFamily(family)
    return f
