Edit in GitHubLog an issue

CharacterStyle

The Class that stores properties related to the Character panel in the Photoshop UI.

Properties

名称类型访问默认范围最低版本描述
alternateLigaturesbooleanR Wfalse-24.1Discretionary ligatures.
antiAliasMethodAntiAliasR WAntiAlias.SHARP-24.1The text anti-aliasing
autoKerningAutoKernTypeR WAutoKernType.METRICS-24.1The auto kerning option to use.
baselineBaselineR WBaseline.NORMAL-24.1The text baseline.
baselineShiftnumberR W--1296..129624.1The value in pixels to use in the baseline offset of text for a 72ppi document.
capitalizationTextCaseR WTextCase.NORMAL-24.1The text case.
characterAlignmentCharacterAlignmentR WCharacterAlignment.ROMAN-24.1Character alignment. When a line of text contains different sizes of characters, you can specify how to align text to the largest characters in the line.
colorSolidColorR W--24.1The text color as a SolidColor instance.
fauxBoldbooleanR Wfalse-24.1True to use Faux Bold. Setting this to true is equivalent to selecting text and clicking Faux Bold in the Character panel.
fauxItalicbooleanR Wfalse-24.1True to use Faux Italic. Setting this to true is equivalent to selecting text and clicking Faux Italic in the Character panel.
fontstringR W--24.1The text face of the character, using the PostScript name of the font. See TextFont and use the `postScriptName` property.
fractionalWidthsbooleanR Wfalse-24.1Use fractional widths for the text.
fractionsbooleanR Wfalse-24.1Fractions.
horizontalDiacriticPositionnumberR W--1000..100024.1Adjust the horizontal diacritic position for Middle Eastern languages.
horizontalScalenumberR W-0..100024.1Character scaling (horizontal) in proportion to verticalScale, as a percentage value.
kashidasbooleanR Wtrue-24.1Toggles kashidas in Middle Eastern languages.
languageLanguageR W--24.1Language used as a basis for hyphenation rules and spelling.
leadingnumberR Wnull0..4999.9924.1The leading amount in pixels for a 72ppi document.
ligaturesbooleanR Wtrue-24.1Standard ligatures (default: true).
middleEasternDigitsTypeMiddleEasternDigitsTypeR WMiddleEasternDigitsType.LTRARABIC-24.1The text digits type to use (Middle Eastern features)
middleEasternTextDirectionMiddleEasternTextDirectionR WMiddleEasternTextDirection.DEFAULT-24.1The text direction (Middle Eastern features)
noBreakbooleanR Wfalse-24.1True to disallow line breaks in this text.
ordinalsbooleanR Wfalse-24.1Ordinals.
sizenumberR W-0.01..129624.1The font size in pixels for a 72ppi document.
strikeThroughStrikeThroughR WStrikeThrough.STRIKEOFF-24.1Whether the text is strikethrough or not.
stylisticAlternatesbooleanR Wfalse-24.1Stylistic Alternates
swashbooleanR Wfalse-24.1Swash.
titlingAlternatesbooleanR Wfalse-24.1Titling alternates.
trackingnumberR W--1000..100024.1The amount of uniform spacing between multiple characters. Tracking units are 1/1000 of an em space. The width of an em space is relative to the current type size. In a 1-point font, 1 em equals 1 point; in a 10-point font, 1 em equals 10 points. So for example, 100 tracking units in a 10-point font are equivalent to 1 point
underlineUnderlineR WUnderline.NONE-24.1The underline style to use.
useAutoLeadingbooleanR W--24.1True to use a font's built-in leading information.
verticalDiacriticPositionnumberR W--1000..100024.1Adjust the vertical diacritic position for Middle Eastern languages.
verticalScalenumberR W-0..100024.1Character scaling (vertical) in proportion to horizontalScale, as a percentage value.

Methods

reset

24.1

async : Promise<void>

Resets the text styles of the Character panel to their default values.

Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2023 Adobe. All rights reserved.