Back to Website
Show / Hide Table of Contents

Class BaseTextItem.FontSettings

Inheritance
ModelComponent
BaseTextItem.FontSettings
Package: @aurigma/design-atoms-model

Constructors

(constructor)(postScriptName, size)

Constructs a new instance of the FontSettings class

Declaration
constructor(postScriptName: string, size?: number);
Parameters
Type Name Description
string postScriptName
number size

Properties

$_propertyChanged

Declaration
protected $_propertyChanged: EventWithSenderArg<FontSettings, string>;
Property Value
Type Description
EventWithSenderArg<FontSettings, string>

allCaps

Declaration
get allCaps(): boolean;

set allCaps(value: boolean);
Property Value
Type Description
boolean

fauxBold

Declaration
get fauxBold(): boolean;

set fauxBold(value: boolean);
Property Value
Type Description
boolean

fauxItalic

Declaration
get fauxItalic(): boolean;

set fauxItalic(value: boolean);
Property Value
Type Description
boolean

openTypeFeatures

Declaration
get openTypeFeatures(): OpenTypeFeature[];

set openTypeFeatures(value: OpenTypeFeature[]);
Property Value
Type Description
OpenTypeFeature[]

postScriptName

Declaration
get postScriptName(): string;

set postScriptName(value: string);
Property Value
Type Description
string

size

Declaration
get size(): number;

set size(value: number);
Property Value
Type Description
number

Methods

addPropertyChanged(listener)

Declaration
addPropertyChanged(listener: (sender: FontSettings, eventArgs: string) => void): void;
Parameters
Type Name Description
(sender: FontSettings, eventArgs: string) => void listener
Returns
Type Description
void

clone()

Declaration
clone(): FontSettings;
Returns
Type Description
FontSettings

equals(other)

Declaration
equals(other: FontSettings): any;
Parameters
Type Name Description
FontSettings other
Returns
Type Description
any

equals(a, b)

Declaration
static equals(a: FontSettings, b: FontSettings): any;
Parameters
Type Name Description
FontSettings a
FontSettings b
Returns
Type Description
any

getSimplifiedObject()

Declaration
getSimplifiedObject(): {
            allCaps: boolean;
            fauxBold: boolean;
            fauxItalic: boolean;
            openTypeFeatures: OpenTypeFeature[];
            postScriptName: string;
            size: number;
        };
Returns
Type Description
{ allCaps: boolean; fauxBold: boolean; fauxItalic: boolean; openTypeFeatures: OpenTypeFeature[]; postScriptName: string; size: number; }

removePropertyChanged(listener)

Declaration
removePropertyChanged(listener: (sender: FontSettings, eventArgs: string) => void): void;
Parameters
Type Name Description
(sender: FontSettings, eventArgs: string) => void listener
Returns
Type Description
void
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2025 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback