
The script could just as easily make these changes to anĮxisting document by replacing the call toįor scripts created inside a document (container-bound), useĭocumentApp.getActiveDocument(). Paragraph as a heading, and appends a table based on the values in a
The script above creates a new document in the user's Google Drive, then insertsĪ paragraph that contains the same text as the document's name, styles that Table.getRow(0).editAsText().setBold(true) Var doc = DocumentApp.create('Sample Document') In either case, it's simple to interact with a Google Doc through Apps Script'sĭocument Service, as the following example Tools > Script editor from within Google Docs. To create a container-bound script, select The script special abilities to alter the user interface or respond when theĭocument is opened. You will have to do your own research on how to change the CSS or set fonts on your own.Google Apps Script allows you to programmatically create and modify Google Docs,Īs well as customize the user interface with new menus, dialog boxes, andĪpps Script can interact with Google Docs in two broad ways: any script canĬreate or modify a document if the script's user has appropriate permissions for
Blogger – Template > Edit HTML > Insert or update the in the section.Īs for the rest, sorry that I cannot answer every single one, or this guide will never end. WordPress – Appearance > Customize > Additional CSS (Depending on your theme, this may be different). HOW ABOUT BLOGGER, WIX, SQUARESPACE, WORDPRESS? Just don’t go overly crazy with too many custom fonts. They add bloat to the loading times and will slow websites down. But remember that browser still have to download the font files. If you want to be on the safe side, stick with using the common ones only – ttf, otf, and woff. But sadly, the file formats are not universal, and browsers don’t support all of them. There are a ton of different font formats in the world – ttf, otf, woff, woff2, eot, and more. That’s all for this tutorial, and here is a small section on some extras and links that may be useful to you. On the Google Fonts website, simply search for the fonts that you want, and click on “select this style”. Then assign where to use which font accordingly.ĭon’t have access to upload font files to the server? An alternative is to use web fonts, and Google Fonts is a good place to find a ton of them. Lorem ipsum dolor sit amet, consectetur adipiscing elit.Ĭan we use multiple custom fonts? Of course, we can. * (A) DEFINE FONT FAMILY NAME + WHICH FONT FILE TO USE