Adobe 26001360 Scripting Guide - Page 299
The Wari-Chu scale, The Wari-Chu justification
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 299 highlights
Adobe Illustrator CS Scripting Guide 299 Table 5.7 CharacterAttributes - Properties (Continued) Property R/O Value Type What it is WarichiCharactersAfterBreak WariChuCharactersBeforeBreak WarichuEnabled WarichuLineGap WarichuJustification WarichuLines WarichuScale Long Long Boolean Long AiWariChuJustificationType Long Double Specifies how the characters in Wari-Chu text (an inset note in Japanese text) are divided into two or more lines Specifies how the characters in Wari-Chu text (an inset note in Japanese text) are divided into two or more lines If true, Wari-Chu is enabled The Wari-Chu line gap The Wari-Chu justification The number of Wari-Chu (multiple text lines fit into a space meant for one) lines The Wari-Chu scale Example 4.1 ' Character Attributes ' ' Open a document, and add a simple text frame ' ' Use the CharacterAttributes object to increment ' the size of each character in the text frame. ' Dim appRef As New Illustrator.Application Dim docRef As Illustrator.Document Dim textRef As Illustrator.TextFrame Dim iCount As Integer Dim i As Integer Dim dSize As Double Set docRef = appRef.Documents.Add() Set textRef = docRef.TextFrames.Add() textRef.Contents = "I'd rather be scripting!" textRef.Top = 500 textRef.Left = 40 dSize = 100 iCount = textRef.Characters.Count i = 1 Dim charRef Do While (i < (iCount + 1)) dSize = dSize * 1.1 textRef.TextRange.Characters(i).CharacterAttributes.HorizontalScale = dSize textRef.TextRange.Characters(i).CharacterAttributes.VerticalScale = dSize i = i + 1 Loop 12 Aug 03