Skip to main content

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