QFontDatabase

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

+ new QFontDatabase(): QFontDatabase

Overrides Component.constructor

Returns: QFontDatabase

Properties

native

• native: NativeElement | null

Inherited from Component.native

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


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 applicationFontFamilies

â–¸ applicationFontFamilies(id: number): string[]

Parameters:

NameType
idnumber

Returns: string[]


Static removeApplicationFont

â–¸ removeApplicationFont(id: number): boolean

Parameters:

NameType
idnumber

Returns: boolean