#NEWLINE# def get_cached_qfont( font ) : #NEWLINE# #INDENT# ' Get the cached QFont for the Enaml Font.\n\n    Parameters\n    ----------\n    font : Font\n        The Enaml Font object.\n\n    Returns\n    -------\n    result : QFont\n        The cached QFont for the font. If no cached font exists, one\n        will be created.\n\n    ' #NEWLINE# qfont = font . _tkdata #NEWLINE# if ( not isinstance ( qfont , QFont ) ) : #NEWLINE# #INDENT# qfont = font . _tkdata = QFont_from_Font ( font ) #NEWLINE# #UNINDENT# return qfont