CharacterAttributes
CharacterAttributes
Section titled “CharacterAttributes”characterAttributes
Description
Section titled “Description”Specifies the properties of a character contained in a text frame. A CharacterStyle
object associates these attributes with a specific text range through its characterAttributes
property.
Properties
Section titled “Properties”CharacterAttributes.akiLeft
Section titled “CharacterAttributes.akiLeft”characterAttributes.akiLeft
Description
Section titled “Description”The amount of inter-character spacing to be added to the left side of the character, in thousandths of an em (that amount will not compress or expand during full-justification).
Number (double)
CharacterAttributes.akiRight
Section titled “CharacterAttributes.akiRight”characterAttributes.akiRight
Description
Section titled “Description”The amount of inter-character spacing to be added to the right side of the character, in thousandths of an em (that amount will not compress or expand during full-justification).
Number (double)
CharacterAttributes.alignment
Section titled “CharacterAttributes.alignment”characterAttributes.alignment
Description
Section titled “Description”The character alignment type.
CharacterAttributes.alternateGlyphs
Section titled “CharacterAttributes.alternateGlyphs”characterAttributes.alternateGlyphs
Description
Section titled “Description”The alternate glyphs form.
CharacterAttributes.autoLeading
Section titled “CharacterAttributes.autoLeading”characterAttributes.autoLeading
Description
Section titled “Description”If true
, the automatic leading should be used.
Boolean
CharacterAttributes.baselineDirection
Section titled “CharacterAttributes.baselineDirection”characterAttributes.baselineDirection
Description
Section titled “Description”The Japanese text baseline direction.
CharacterAttributes.baselinePosition
Section titled “CharacterAttributes.baselinePosition”characterAttributes.baselinePosition
Description
Section titled “Description”The baseline position of text.
CharacterAttributes.baselineShift
Section titled “CharacterAttributes.baselineShift”characterAttributes.baselineShift
Description
Section titled “Description”The amount of shift in points of the text baseline.
Number (double)
CharacterAttributes.capitalization
Section titled “CharacterAttributes.capitalization”characterAttributes.capitalization
Description
Section titled “Description”The case of text.
CharacterAttributes.connectionForms
Section titled “CharacterAttributes.connectionForms”characterAttributes.connectionForms
Description
Section titled “Description”If true
, the OpenType® connection forms should be used.
Boolean
CharacterAttributes.contextualLigature
Section titled “CharacterAttributes.contextualLigature”characterAttributes.contextualLigature
Description
Section titled “Description”If true
, the contextual ligature should be used.
Boolean
CharacterAttributes.discretionaryLigature
Section titled “CharacterAttributes.discretionaryLigature”characterAttributes.discretionaryLigature
Description
Section titled “Description”If true
, the discretionary ligature should be used.
Boolean
CharacterAttributes.figureStyle
Section titled “CharacterAttributes.figureStyle”characterAttributes.figureStyle
Description
Section titled “Description”The number style in a OpenType font.
CharacterAttributes.fillColor
Section titled “CharacterAttributes.fillColor”characterAttributes.fillColor
Description
Section titled “Description”The color of the text fill.
CharacterAttributes.fractions
Section titled “CharacterAttributes.fractions”characterAttributes.fractions
Description
Section titled “Description”If true
, the OpenType fractions should be used.
Boolean
CharacterAttributes.horizontalScale
Section titled “CharacterAttributes.horizontalScale”characterAttributes.horizontalScale
Description
Section titled “Description”The character horizontal scaling factor expressed as a percentage (100 = 100%).
Number (double)
CharacterAttributes.italics
Section titled “CharacterAttributes.italics”characterAttributes.italics
Description
Section titled “Description”If true
, the Japanese OpenType font supports italics.
Boolean
CharacterAttributes.kerningMethod
Section titled “CharacterAttributes.kerningMethod”characterAttributes.kerningMethod
Description
Section titled “Description”The automatic kerning method to use.
CharacterAttributes.language
Section titled “CharacterAttributes.language”characterAttributes.language
Description
Section titled “Description”The language of text.
CharacterAttributes.leading
Section titled “CharacterAttributes.leading”characterAttributes.leading
Description
Section titled “Description”The amount of space between two lines of text, in points.
Number (double)
CharacterAttributes.ligature
Section titled “CharacterAttributes.ligature”characterAttributes.ligature
Description
Section titled “Description”If true
, the ligature should be used.
Boolean
CharacterAttributes.noBreak
Section titled “CharacterAttributes.noBreak”characterAttributes.noBreak
Description
Section titled “Description”If true
, line breaks are not allowed.
Boolean
CharacterAttributes.openTypePosition
Section titled “CharacterAttributes.openTypePosition”characterAttributes.openTypePosition
Description
Section titled “Description”The OpenType baseline position.
CharacterAttributes.ordinals
Section titled “CharacterAttributes.ordinals”characterAttributes.ordinals
Description
Section titled “Description”If true
, the OpenType ordinals should be used.
Boolean
CharacterAttributes.ornaments
Section titled “CharacterAttributes.ornaments”characterAttributes.ornaments
Description
Section titled “Description”If true
, the OpenType ornaments should be used.
Boolean
CharacterAttributes.overprintFill
Section titled “CharacterAttributes.overprintFill”characterAttributes.overprintFill
Description
Section titled “Description”If true
, the fill of the text should be overprinted.
Boolean
CharacterAttributes.overprintStroke
Section titled “CharacterAttributes.overprintStroke”characterAttributes.overprintStroke
Description
Section titled “Description”If true
, the stroke of the text should be overprinted.
Boolean
CharacterAttributes.parent
Section titled “CharacterAttributes.parent”characterAttributes.parent
Description
Section titled “Description”The object’s container.
Object; read-only.
CharacterAttributes.proportionalMetrics
Section titled “CharacterAttributes.proportionalMetrics”characterAttributes.proportionalMetrics
Description
Section titled “Description”If true
, the Japanese OpenType font supports proportional glyphs.
Boolean
CharacterAttributes.rotation
Section titled “CharacterAttributes.rotation”characterAttributes.rotation
Description
Section titled “Description”The character rotation angle in degrees.
Number (double)
CharacterAttributes.size
Section titled “CharacterAttributes.size”characterAttributes.size
Description
Section titled “Description”Font size in points.
Number (double)
CharacterAttributes.strikeThrough
Section titled “CharacterAttributes.strikeThrough”characterAttributes.strikeThrough
Description
Section titled “Description”If true
, characters use strike-through style.
Boolean
CharacterAttributes.strokeColor
Section titled “CharacterAttributes.strokeColor”characterAttributes.strokeColor
Description
Section titled “Description”The color of the text stroke.
CharacterAttributes.strokeWeight
Section titled “CharacterAttributes.strokeWeight”characterAttributes.strokeWeight
Description
Section titled “Description”Line width of stroke.
Number (double)
CharacterAttributes.stylisticAlternates
Section titled “CharacterAttributes.stylisticAlternates”characterAttributes.stylisticAlternates
Description
Section titled “Description”If true
, the OpenType stylistic alternates should be used.
Boolean
CharacterAttributes.swash
Section titled “CharacterAttributes.swash”characterAttributes.swash
Description
Section titled “Description”If true
, the OpenType swash should be used.
Boolean
CharacterAttributes.tateChuYokoHorizontal
Section titled “CharacterAttributes.tateChuYokoHorizontal”characterAttributes.tateChuYokoHorizontal
Description
Section titled “Description”The Tate-Chu-Yoko horizontal adjustment in points.
Number (long)
CharacterAttributes.tateChuYokoVertical
Section titled “CharacterAttributes.tateChuYokoVertical”characterAttributes.tateChuYokoVertical
Description
Section titled “Description”The Tate-Chu-Yoko vertical adjustment in points.
Number (long)
CharacterAttributes.textFont
Section titled “CharacterAttributes.textFont”characterAttributes.textFont
Description
Section titled “Description”The text font.
CharacterAttributes.titling
Section titled “CharacterAttributes.titling”characterAttributes.titling
Description
Section titled “Description”If true
, the OpenType titling alternates should be used.
Boolean
CharacterAttributes.tracking
Section titled “CharacterAttributes.tracking”characterAttributes.tracking
Description
Section titled “Description”The tracking or range kerning amount, in thousandths of an em.
Number (long)
CharacterAttributes.Tsume
Section titled “CharacterAttributes.Tsume”characterAttributes.Tsume
Description
Section titled “Description”The percentage of space reduction around a Japanese character.
Number (double)
CharacterAttributes.typename
Section titled “CharacterAttributes.typename”characterAttributes.typename
Description
Section titled “Description”The class name of the object.
String; read-only.
CharacterAttributes.underline
Section titled “CharacterAttributes.underline”characterAttributes.underline
Description
Section titled “Description”If true
, characters are underlined.
Boolean
CharacterAttributes.verticalScale
Section titled “CharacterAttributes.verticalScale”characterAttributes.verticalScale
Description
Section titled “Description”Character vertical scaling factor expressed as a percentage (= 100%).
Number (double)
CharacterAttributes.wariChuCharactersAfterBreak
Section titled “CharacterAttributes.wariChuCharactersAfterBreak”characterAttributes.wariChuCharactersAfterBreak
Description
Section titled “Description”Specifies how the characters in Wari-Chu text (an inset note in Japanese text) are divided into two or more lines.
Number (long)
CharacterAttributes.wariChuCharactersBeforeBreak
Section titled “CharacterAttributes.wariChuCharactersBeforeBreak”characterAttributes.wariChuCharactersBeforeBreak
Description
Section titled “Description”Specifies how the characters in Wari-Chu text (an inset note in Japanese text) are divided into two or more lines.
Number (long)
CharacterAttributes.waiChuEnabled
Section titled “CharacterAttributes.waiChuEnabled”characterAttributes.waiChuEnabled
Description
Section titled “Description”If true
, Wari-Chu is enabled.
Boolean
CharacterAttributes.wariChuJustification
Section titled “CharacterAttributes.wariChuJustification”characterAttributes.wariChuJustification
Description
Section titled “Description”The Wari-Chu justification.
CharacterAttributes.wariChuLineGap
Section titled “CharacterAttributes.wariChuLineGap”characterAttributes.wariChuLineGap
Description
Section titled “Description”The Wari-Chu line gap.
Number (long)
CharacterAttributes.wariChuLines
Section titled “CharacterAttributes.wariChuLines”characterAttributes.wariChuLines
Description
Section titled “Description”The number of Wari-Chu (multiple text lines fit into a space meant for one) lines.
Number (long)
CharacterAttributes.wariChuScale
Section titled “CharacterAttributes.wariChuScale”characterAttributes.wariChuScale
Description
Section titled “Description”The Wari-Chu scale.
Number (double)
Example
Section titled “Example”Setting character attributes
Section titled “Setting character attributes”// Creates a new document, adds a simple text item// then incrementally increases the horizontal and// vertical scale attributes of each character
var docRef = documents.add();var textRef = docRef.textFrames.add();textRef.contents = "I Love Scripting!";textRef.top = 400;textRef.left = 100;
// incrementally increase the scale of each charactervar charCount = textRef.textRange.characters.length;var size = 100;for (var i = 0; i < charCount; i++, size *= 1.2) { textRef.textRange.characters[i].characterAttributes.horizontalScale = size; textRef.textRange.characters[i].characterAttributes.verticalScale = size;}