You are on page 1of 1

2 Text

Chapter Update Status


CS6 Unchanged

Getting started
This chapter presents text-related use cases. To learn about how text layout is organized, do the following:

 Run through the activities in “Exploring text with SnippetRunner”, to learn how to explore text and
familiarize yourself with fundamental text-Sample Code.

 Read the “Text Fundamentals” chapter in Adobe InDesign® Programming Guide.

To solve a text-related programming problem, do the following:

 Look in this document for a use case that matches your problem.

 As references, see the API reference documentation and the “Text Fundamentals” chapter mentioned
above.

Exploring text with SnippetRunner


SnippetRunner is a plug-in that lets you run code snippets provided on the SDK. Several code snippets are
provided that let you explore the text-related objects in a document.

Solution

1. Run InDesign with the SnippetRunner plug-in present. For instructions on using the plug-in, see the
API documentation page for SnippetRunner.

2. Browse the sample code in the snippets you have been running.

Sample code

 BscShpHandleShape::DrawLabelHandles in sample basic shape on the SDK

 CHMLFiltTextHelper in sample chmlfilter

 SingleLineComposer

 SnpApplyTextStyleAttributes

 SnpApplyTextStyleAttributes::ApplyFontVariant

 SnpCreateFrame

46

You might also like