Skip to main content

Span

Classes​

OpenTypeFeature​

Constructors​

Constructor​
new OpenTypeFeature(tag, value): OpenTypeFeature;
Parameters​
ParameterType
tagstring
valuenumber
Returns​

OpenTypeFeature

Properties​

tag​
tag: string;
value​
value: number;

Methods​

equals()​
equals(other): boolean;
Parameters​
ParameterType
otherOpenTypeFeature
Returns​

boolean


Span​

Extends​

Constructors​

Constructor​
new Span(): Span;
Returns​

Span

Inherited from​

InlineElement.constructor

Properties​

content​
content: InlineElement[] = [];
style​
style: SpanStyle;

SpanStyle​

Constructors​

Constructor​
new SpanStyle(): SpanStyle;
Returns​

SpanStyle

Properties​

allCaps?​
optional allCaps?: boolean;
bold?​
optional bold?: boolean;
color?​
optional color?: IColorData;
fontName?​
optional fontName?: string;
fontSize?​
optional fontSize?: NumericValue;
horizontalScale?​
optional horizontalScale?: number;
italic?​
optional italic?: boolean;
leading?​
optional leading?: NumericValue;
openTypeFeatures?​
optional openTypeFeatures?: OpenTypeFeature[];
penColor?​
optional penColor?: IColorData;
penWidth?​
optional penWidth?: NumericValue;
smallCaps?​
optional smallCaps?: boolean;
sub?​
optional sub?: boolean;
subSize?​
optional subSize?: number;
sup?​
optional sup?: boolean;
supSize?​
optional supSize?: number;
tracking?​
optional tracking?: number;
underline?​
optional underline?: boolean;
verticalScale?​
optional verticalScale?: number;

Type Aliases​

OpenTypeFeatureTag​

type OpenTypeFeatureTag = string;
Was this page helpful?