DropCapStyle
DropCapStyle
DropCapStyle Object of AppleNewsFormat The object for defining the drop cap text style to use in the first paragraph in a text component.
object DropCapStyleDiscussion
Use a DropCapStyle object to define a drop cap that a ComponentTextStyle object can use. You can apply drop caps to the first paragraph of the following components:
- `
doc://com.apple.applenews/documentation/AppleNewsFormat/Author` - `
doc://com.apple.applenews/documentation/AppleNewsFormat/Body` - `
doc://com.apple.applenews/documentation/AppleNewsFormat/Byline` - `
doc://com.apple.applenews/documentation/AppleNewsFormat/Caption` - `
doc://com.apple.applenews/documentation/AppleNewsFormat/Heading` - `
doc://com.apple.applenews/documentation/AppleNewsFormat/Illustrator` - `
doc://com.apple.applenews/documentation/AppleNewsFormat/Intro` - `
doc://com.apple.applenews/documentation/AppleNewsFormat/Photographer` - `
doc://com.apple.applenews/documentation/AppleNewsFormat/PullQuote`
Note: Using a divider between paragraphs splits text into separate components. This affects the rendering of
dropCapStyle. If you want to include a divider between paragraphs and you don’t want the paragraph after the divider to have a drop cap, use separate text components for the block of text before and after the divider. Then make sure that you don’t havedropCapStylein the text component following the divider.
You can use this object in TextStyle and ComponentTextStyle.