<!--
{
  "availability" : [
    "Apple News Format: 1.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppleNews",
  "identifier" : "/documentation/AppleNewsFormat/InlineTextStyle",
  "metadataVersion" : "0.1.0",
  "role" : "Object",
  "symbol" : {
    "kind" : "Object",
    "modules" : [
      "Apple News Format"
    ],
    "preciseIdentifier" : "data:news_format:InlineTextStyle"
  },
  "title" : "InlineTextStyle"
}
-->

# InlineTextStyle

The object for applying text styling when not using HTML or Markdown formatting.

```
object InlineTextStyle
```

## Discussion

Use an `InlineTextStyle` object to apply text stylings (such as color, underline, font size, and font weight) to a specific range of text. The `InlineTextStyle` object contains either a [`TextStyle`](/documentation/AppleNewsFormat/TextStyle) object or a reference to a text style that’s been defined in the [`ArticleDocument.textStyles`](/documentation/AppleNewsFormat/ArticleDocument/textStyles-data.dictionary) object. Only properties that have values override the component text style and defaults.

You can use this object in [`Text`](/documentation/AppleNewsFormat/Text).

### Example

```json
{
  "components": [
    {
      "role": "pullquote",
      "text": "The text of the pullquote.",
      "textStyle": "pullquote-medium",
      "inlineTextStyles": [
        {
          "rangeStart": 4,
          "rangeLength": 4,
          "textStyle": {
            "textColor": "#FF0000",
            "backgroundColor": "#000"
          }
        }
      ]
    }
  ]
}
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)