public static FontData getPrefFontData() {
        DBPPreferenceStore store = DBWorkbench.getPlatform().getPreferenceStore();
        String fontName = store.getString(HexEditorPreferences.HEX_FONT_NAME);
        if (CommonUtils.isEmpty(fontName)) {
            fontName = HexEditControl.DEFAULT_FONT_NAME;
        }
        int fontStyle = store.getInt(HexEditorPreferences.HEX_FONT_STYLE);
        int fontSize = store.getInt(HexEditorPreferences.HEX_FONT_SIZE);
        if (fontSize == 0) {
            fontSize = 10;
        }
        if (!CommonUtils.isEmpty(fontName) && fontSize > 0) {
            return new FontData(fontName, fontSize, fontStyle);
        }

        return HexEditControl.DEFAULT_FONT_DATA;
    }
Get font data information common to all plugin editors. Data comes from preferences store.

@return font data to be used by plugin editors. Returns null for default font data.
plugins/org.jkiss.dbeaver.ui.editors.hex/src/org/jkiss/dbeaver/ui/editors/binary/pref/HexPreferencesPage.java