1
1
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:
Eugene Pankov 2019-05-29 12:01:35 +02:00
parent 71780a707a
commit b6bcb852e5

View File

@ -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) {