

def _set_font(self, font):
    ' Sets the font used by the text control to the specified font.\n        '
    font.setPointSize(min(10, font.pointSize()))
    self._font.setFont(font)

dataset/ETHPy150Open enthought/traitsui/traitsui/qt4/font_editor.py CustomFontEditor._set_font/original