Feedback geben
Enum FontFamily
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
FontFamily
Veraltet. Bei den Methoden getFontFamily()
und setFontFamily(String)
wird jetzt ein String verwendet
Namen für Schriftarten anstelle
dieser Aufzählung. Obwohl diese Enum veraltet ist, bleibt sie erhalten.
für die Kompatibilität mit älteren Skripts verfügbar.
Eine Aufzählung der unterstützten Schriftarten.
Verwenden Sie die Aufzählung FontFamily
, um die Schriftart für einen Textbereich, ein Element oder
Dokument.
var body = 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 .
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 );
Verworfene Attribute
Attribut Typ Beschreibung
AMARANTH
Enum
Die Schriftfamilie Amaranth
ARIAL
Enum
Die Schriftfamilie " Arial"
ARIAL_BLACK
Enum
Die Schriftfamilie Arial Black.
ARIAL_NARROW
Enum
Die schmale Schriftfamilie " Arial (schmal)".
ARVO
Enum
Die Arvo-Schriftfamilie
CALIBRI
Enum
Die Schriftfamilie Calibri
CAMBRIA
Enum
Die Cambria-Schriftarten
COMIC_SANS_MS
Enum
Die Comic Sans MS-Schriftfamilie
CONSOLAS
Enum
Die Consolas-Schriftfamilie
CORSIVA
Enum
Die Schriftfamilie Corsiva
COURIER_NEW
Enum
Die Schriftfamilie Courier New
DANCING_SCRIPT
Enum
Die Schriftfamilie Dancing Script
DROID_SANS
Enum
Die Schriftfamilie Droid Sans
DROID_SERIF
Enum
Die Schriftfamilie Droid Serif
GARAMOND
Enum
Die Schriftfamilie von Garamond
GEORGIA
Enum
Die Schriftfamilie Georgia
GLORIA_HALLELUJAH
Enum
Die Schriftfamilie Gloria Halleluja
GREAT_VIBES
Enum
Die Schriftfamilie Great Vibes
LOBSTER
Enum
Die Schriftfamilie "Lobster"
MERRIWEATHER
Enum
Die Schriftfamilie Merriweather
PACIFICO
Enum
Die Pacifico-Schriftfamilie
PHILOSOPHER
Enum
Die Schriftfamilie Philosopher
POIRET_ONE
Enum
Die Schriftfamilie Poiret One
QUATTROCENTO
Enum
Die Quattrocento-Schriftfamilie
ROBOTO
Enum
Die Roboto-Schriftfamilie
SHADOWS_INTO_LIGHT
Enum
Die Schriftfamilie Shadows Into Light.
SYNCOPATE
Enum
Die Syncopate-Schriftfamilie.
TAHOMA
Enum
Die Schriftfamilie Tahoma
TIMES_NEW_ROMAN
Enum
Die Schriftfamilie Times New Roman
TREBUCHET_MS
Enum
Die Schriftfamilie Trebuchet MS.
UBUNTU
Enum
Die Ubuntu-Schriftarten
VERDANA
Enum
Die Verdana-Schriftfamilie
Feedback geben
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers . Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-08-22 (UTC).
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Benötigte Informationen nicht gefunden"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Zu umständlich/zu viele Schritte"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Nicht mehr aktuell"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Problem mit der Übersetzung"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Problem mit Beispielen/Code"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Sonstiges"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Leicht verständlich"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Mein Problem wurde gelöst"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Sonstiges"
}]
Haben Sie Feedback für uns?
{"lastModified": "Zuletzt aktualisiert: 2024-08-22\u00a0(UTC)."}
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2024-08-22 (UTC)."]]