src/view/ViewCommandHandlers.js
function setFontFamily(fontFamily) {
        var editor = EditorManager.getCurrentFullEditor();

        if (currFontFamily === fontFamily) {
            return;
        }

        _removeDynamicFontFamily();
        if (fontFamily) {
            _addDynamicFontFamily(fontFamily);
        }

        exports.trigger("fontFamilyChange", fontFamily, currFontFamily);
        currFontFamily = fontFamily;
        prefs.set("fontFamily", fontFamily);

        if (editor) {
            editor.refreshAll();
        }
    }
function setFontFamily(fontFamily) {
        var editor = EditorManager.getCurrentFullEditor();

        if (currFontFamily === fontFamily) {
            return;
        }

        _removeDynamicFontFamily();
        if (fontFamily) {
            _addDynamicFontFamily(fontFamily);
        }

        exports.trigger("fontFamilyChange", fontFamily, currFontFamily);
        currFontFamily = fontFamily;
        prefs.set("fontFamily", fontFamily);

        if (editor) {
            editor.refreshAll();
        }
    }
function setFontFamily ( fontFamily ) { var editor = EditorManager . getCurrentFullEditor ( ) ; if ( currFontFamily === fontFamily ) { return ; } _removeDynamicFontFamily ( ) ; if ( fontFamily ) { _addDynamicFontFamily ( fontFamily ) ; } exports . trigger ( "fontFamilyChange" , fontFamily , currFontFamily ) ; currFontFamily = fontFamily ; prefs . set ( "fontFamily" , fontFamily ) ; if ( editor ) { editor . refreshAll ( ) ; } }
Font family setter to set the font family for the document editor
@param {string} fontFamily The font family to be set.  It can be a string with multiple comma separated fonts
Font family setter to set the font family for the document editor