I have some Google Apps Script code to set the font of some text in a Google Document.
text.setFontFamily(element.getStartOffset(), element.getEndOffset