QFontDatabase
Hierarchy
↳ QFontDatabase
Index
Constructors
Properties
Methods
- bold
- families
- isFixedPitch
- italic
- setNodeParent
- styles
- weight
- addApplicationFont
- applicationFontFamilies
- removeApplicationFont
Constructors
constructor
+ new QFontDatabase(): QFontDatabase
Overrides Component.constructor
Returns: QFontDatabase
Properties
native
• native: NativeElement
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:
| 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 applicationFontFamilies
â–¸ applicationFontFamilies(id: number): string[]
Parameters:
| Name | Type |
|---|---|
id | number |
Returns: string[]
Static removeApplicationFont
â–¸ removeApplicationFont(id: number): boolean
Parameters:
| Name | Type |
|---|---|
id | number |
Returns: boolean