mirror of
https://github.com/Eugeny/tabby.git
synced 2024-12-28 21:13:18 +03:00
fixed font name autocompletion on Windows (fixes #661)
This commit is contained in:
parent
71780a707a
commit
b6bcb852e5
@ -30,7 +30,7 @@ export class AppearanceSettingsTabComponent {
|
||||
async ngOnInit () {
|
||||
if (this.hostApp.platform === Platform.Windows || this.hostApp.platform === Platform.macOS) {
|
||||
let fonts = await new Promise<any[]>((resolve) => fontManager.findFonts({ monospace: true }, resolve))
|
||||
this.fonts = fonts.map(x => x.family)
|
||||
this.fonts = fonts.map(x => (x.family + ' ' + x.style).trim())
|
||||
this.fonts.sort()
|
||||
}
|
||||
if (this.hostApp.platform === Platform.Linux) {
|
||||
|
Loading…
Reference in New Issue
Block a user