def set_font ( editor ):
    editor.control.setFont(editor.factory.to_qt4_font(editor))


# Define the names SimpleEditor, CustomEditor, TextEditor and ReadonlyEditor
# which are looked up by the editor factory for the font editor.
Sets the editor control's font to match a specified font.
dataset/ETHPy150Open enthought/traitsui/traitsui/qt4/font_editor.py/set_font