PsdTextStyle class final

Formatting applied to a range of Photoshop text.

Constructors

PsdTextStyle({String? fontFamily, PsdTextFont? font, double? fontSize, PsdTextColor? color, double? tracking, double? lineHeight, bool? automaticLeading, double horizontalScale = 1, double verticalScale = 1, bool automaticKerning = true, double kerning = 0, double baselineShift = 0, int fontCaps = 0, int fontBaseline = 0, bool fauxBold = false, bool fauxItalic = false, bool underline = false, bool strikethrough = false, bool ligatures = true, bool discretionaryLigatures = false, int baselineDirection = 2, double tsume = 0, int styleRunAlignment = 2, int language = 0, bool noBreak = false, PsdTextColor? strokeColor, bool fillEnabled = true, bool strokeEnabled = false, bool fillFirst = true, double underlinePosition = 1, double outlineWidth = 1, int characterDirection = 0, bool hindiNumbers = false, int kashida = 1, int diacriticPosition = 2})
Creates a text style.
const

Properties

automaticKerning → bool
Whether Photoshop calculates kerning automatically.
final
automaticLeading → bool
Whether Photoshop calculates leading automatically.
final
baselineDirection → int
Adobe baseline-direction identifier.
final
baselineShift → double
Vertical baseline offset in text points.
final
characterDirection → int
Adobe character-direction identifier.
final
color → PsdTextColor?
Foreground color, when explicitly stored.
final
diacriticPosition → int
Adobe diacritic-position identifier.
final
discretionaryLigatures → bool
Whether discretionary ligatures are enabled.
final
fauxBold → bool
Whether Photoshop synthesizes a bold face.
final
fauxItalic → bool
Whether Photoshop synthesizes an italic face.
final
fillEnabled → bool
Whether the fill is painted.
final
fillFirst → bool
Whether the fill is painted before the stroke.
final
font → PsdTextFont?
Complete font metadata, when available.
final
fontBaseline → int
Adobe baseline mode identifier.
final
fontCaps → int
Adobe capitalization mode identifier.
final
fontFamily → String?
PostScript or Photoshop font name, when known.
final
fontSize → double?
Font size in text points, when explicitly stored.
final
hashCode → int
The hash code for this object.
no setterinherited
hindiNumbers → bool
Whether Hindi numerals are used.
final
horizontalScale → double
Horizontal glyph scale where 1 is 100 percent.
final
kashida → int
Adobe kashida width identifier.
final
kerning → double
Explicit kerning value.
final
language → int
Adobe language identifier.
final
ligatures → bool
Whether standard ligatures are enabled.
final
lineHeight → double?
Explicit line height, or null for automatic leading.
final
noBreak → bool
Whether line breaks are prohibited in the range.
final
outlineWidth → double
Text outline width.
final
resolvedFontFamily → String?
Preferred font name from complete metadata or the compatibility field.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
strikethrough → bool
Whether the range is struck through.
final
strokeColor → PsdTextColor?
Stroke color, when explicitly stored.
final
strokeEnabled → bool
Whether the stroke is painted.
final
styleRunAlignment → int
Adobe style-run alignment identifier.
final
tracking → double?
Additional tracking in thousandths of an em.
final
tsume → double
Japanese glyph compression amount.
final
underline → bool
Whether the range is underlined.
final
underlinePosition → double
Adobe underline-position value.
final
verticalScale → double
Vertical glyph scale where 1 is 100 percent.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited