QFontDatabase

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

+ new QFontDatabase(): QFontDatabase

Overrides Component.constructor

Returns: QFontDatabase

Properties

native

• native: NativeElement

Overrides Component.native


nodeChildren

• nodeChildren: Set‹Component›

Inherited from Component.nodeChildren


Optional nodeParent

• nodeParent? : Component

Inherited from Component.nodeParent

Methods

bold

â–¸ bold(family: string, style: string): boolean

Parameters:

NameType
familystring
stylestring

Returns: boolean


families

â–¸ families(ws: WritingSystem): string[]

Parameters:

NameTypeDefault
wsWritingSystemWritingSystem.Any

Returns: string[]


isFixedPitch

â–¸ isFixedPitch(family: string, style: string | null): boolean

Parameters:

NameTypeDefault
familystring-
stylestring | nullnull

Returns: boolean


italic

â–¸ italic(family: string, style: string): boolean

Parameters:

NameType
familystring
stylestring

Returns: boolean


setNodeParent

â–¸ setNodeParent(parent?: Component): void

Inherited from Component.setNodeParent

Parameters:

NameType
parent?Component

Returns: void


styles

â–¸ styles(family: string): string[]

Parameters:

NameType
familystring

Returns: string[]


weight

â–¸ weight(family: string, style: string): number

Parameters:

NameType
familystring
stylestring

Returns: number


Static addApplicationFont

â–¸ addApplicationFont(fileName: string): number

Parameters:

NameType
fileNamestring

Returns: number


Static removeApplicationFont

â–¸ removeApplicationFont(id: number): boolean

Parameters:

NameType
idnumber

Returns: boolean