mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-26 14:29:53 +00: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 () {
|
async ngOnInit () {
|
||||||
if (this.hostApp.platform === Platform.Windows || this.hostApp.platform === Platform.macOS) {
|
if (this.hostApp.platform === Platform.Windows || this.hostApp.platform === Platform.macOS) {
|
||||||
let fonts = await new Promise<any[]>((resolve) => fontManager.findFonts({ monospace: true }, resolve))
|
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()
|
this.fonts.sort()
|
||||||
}
|
}
|
||||||
if (this.hostApp.platform === Platform.Linux) {
|
if (this.hostApp.platform === Platform.Linux) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user