Google Docs · Schema

TextStyle

Represents the styling that can be applied to text. Inherited text styles are represented as unset fields. A text style's parent depends on where the text style is defined.

CollaborationDocumentsGoogle WorkspaceProductivityWord Processing

Properties

Name Type Description
bold boolean Whether the text is bold.
italic boolean Whether the text is italicized.
underline boolean Whether the text is underlined.
strikethrough boolean Whether the text is struck through.
smallCaps boolean Whether the text is in small capital letters.
baselineOffset string The text's vertical offset from its normal position.
View JSON Schema on GitHub

JSON Schema

google-docs-v1-text-style-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "TextStyle",
  "type": "object",
  "description": "Represents the styling that can be applied to text. Inherited text styles are represented as unset fields. A text style's parent depends on where the text style is defined.",
  "properties": {
    "bold": {
      "type": "boolean",
      "description": "Whether the text is bold."
    },
    "italic": {
      "type": "boolean",
      "description": "Whether the text is italicized."
    },
    "underline": {
      "type": "boolean",
      "description": "Whether the text is underlined."
    },
    "strikethrough": {
      "type": "boolean",
      "description": "Whether the text is struck through."
    },
    "smallCaps": {
      "type": "boolean",
      "description": "Whether the text is in small capital letters."
    },
    "baselineOffset": {
      "type": "string",
      "description": "The text's vertical offset from its normal position."
    }
  }
}