Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
KeluargaFont
Tidak digunakan lagi. Metode getFontFamily() dan setFontFamily(String) kini menggunakan nama
string untuk font, bukan enum ini. Meskipun enum ini tidak digunakan lagi, enum ini akan tetap
tersedia untuk kompatibilitas dengan skrip lama.
Enumerasi font yang didukung.
Gunakan enumerasi FontFamily untuk menetapkan font untuk rentang teks, elemen, atau
dokumen.
constbody=DocumentApp.getActiveDocument().getActiveTab().asDocumentTab().getBody();// Insert a paragraph at the start of the document.body.insertParagraph(0,'Hello, Apps Script!');// Set the tab 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.consttext='Apps Script';consta=body.getText().indexOf(text);constb=a+text.length-1;body.editAsText().setFontFamily(a,b,DocumentApp.FontFamily.COMIC_SANS_MS);
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2024-12-22 UTC."],[[["`FontFamily` is deprecated and now uses string names for fonts instead of the enum, but remains for compatibility."],["This enum allows you to set the font for text ranges, elements, or entire Google Docs documents."],["Supported fonts include Arial, Calibri, Comic Sans MS, Times New Roman, Verdana, and many more."],["You can use methods like `setFontFamily()` within Google Apps Script to apply these fonts."]]],[]]