nodeguy/website/docs/api/generated/classes/qfontdatabase.md
2021-07-09 01:04:06 +02:00

3.4 KiB
Raw Blame History

id title sidebar_label
qfontdatabase QFontDatabase 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: SetComponent

Inherited from Component.nodeChildren


Optional nodeParent

nodeParent? : Component

Inherited from Component.nodeParent

Methods

bold

bold(family: string, style: string): boolean

Parameters:

Name Type
family string
style string

Returns: boolean


families

families(ws: WritingSystem): string[]

Parameters:

Name Type Default
ws WritingSystem WritingSystem.Any

Returns: string[]


isFixedPitch

isFixedPitch(family: string, style: string | null): boolean

Parameters:

Name Type Default
family string -
style string | null null

Returns: boolean


italic

italic(family: string, style: string): boolean

Parameters:

Name Type
family string
style string

Returns: boolean


setNodeParent

setNodeParent(parent?: Component): void

Inherited from Component.setNodeParent

Parameters:

Name Type
parent? Component

Returns: void


styles

styles(family: string): string[]

Parameters:

Name Type
family string

Returns: string[]


weight

weight(family: string, style: string): number

Parameters:

Name Type
family string
style string

Returns: number


Static addApplicationFont

addApplicationFont(fileName: string): number

Parameters:

Name Type
fileName string

Returns: number


Static removeApplicationFont

removeApplicationFont(id: number): boolean

Parameters:

Name Type
id number

Returns: boolean