private void updateAndRefreshSample()
    {
        sampleFontData = new FontData(textName.getText(), getSize(), fontStyleToInt(textStyle.getText()));
        refreshSample();
    }
Set preferences to show a font. Use null to show default font.

@param aFontData the font to be shown.
plugins/org.jkiss.dbeaver.ui.editors.hex/src/org/jkiss/dbeaver/ui/editors/binary/pref/HexPreferencesManager.java