website/docs/api/generated/classes/qfontdatabase.md
↳ QFontDatabase
+ new QFontDatabase(): QFontDatabase
Overrides Component.constructor
Returns: QFontDatabase
• native: NativeElement | null
Inherited from Component.native
▸ bold(family: string, style: string): boolean
Parameters:
| Name | Type |
|---|---|
family | string |
style | string |
Returns: boolean
▸ families(ws: WritingSystem): string[]
Parameters:
| Name | Type | Default |
|---|---|---|
ws | WritingSystem | WritingSystem.Any |
Returns: string[]
▸ isFixedPitch(family: string, style: string | null): boolean
Parameters:
| Name | Type | Default |
|---|---|---|
family | string | - |
style | string | null | null |
Returns: boolean
▸ italic(family: string, style: string): boolean
Parameters:
| Name | Type |
|---|---|
family | string |
style | string |
Returns: boolean
▸ styles(family: string): string[]
Parameters:
| Name | Type |
|---|---|
family | string |
Returns: string[]
▸ 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