Google Apps Script API
    Preparing search index...

    Deprecated. The methods getFontFamily() and setFontFamily(String) now use string names for fonts instead of this enum. Although this enum is deprecated, it will remain available for compatibility with older scripts. An enumeration of the supported fonts.

    Use the FontFamily enumeration to set the font for a range of text, element or document.

    var body = DocumentApp.getActiveDocument().getBody();
    
    // Insert a paragraph at the start of the document.
    body.insertParagraph(0, "Hello, Apps Script!");
    
    // Set the document font to Calibri.
    body.editAsText().setFontFamily(DocumentApp.FontFamily.CALIBRI);
    
    // Set the first paragraph font to Arial.
    body.getParagraphs()[0].setFontFamily(DocumentApp.FontFamily.ARIAL);
    
    // Set "Apps Script" to Comic Sans MS.
    var text = 'Apps Script';
    var a = body.getText().indexOf(text);
    var b = a + text.length - 1;
    body.editAsText().setFontFamily(a, b, DocumentApp.FontFamily.COMIC_SANS_MS);
    
    Index

    Enumeration Members

    AMARANTH: number
    ARIAL: number
    ARIAL_BLACK: number
    ARIAL_NARROW: number
    ARVO: number
    CALIBRI: number
    CAMBRIA: number
    COMIC_SANS_MS: number
    CONSOLAS: number
    CORSIVA: number
    COURIER_NEW: number
    DANCING_SCRIPT: number
    DROID_SANS: number
    DROID_SERIF: number
    GARAMOND: number
    GEORGIA: number
    GLORIA_HALLELUJAH: number
    GREAT_VIBES: number
    LOBSTER: number
    MERRIWEATHER: number
    PACIFICO: number
    PHILOSOPHER: number
    POIRET_ONE: number
    QUATTROCENTO: number
    ROBOTO: number
    SHADOWS_INTO_LIGHT: number
    SYNCOPATE: number
    TAHOMA: number
    TIMES_NEW_ROMAN: number
    TREBUCHET_MS: number
    UBUNTU: number
    VERDANA: number