1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-10-26 12:43:50 +03:00

don't filter out non-monospace fonts - fixes #5544

This commit is contained in:
Eugene Pankov 2022-04-02 18:12:56 +02:00
parent 4dadba7f80
commit 8e00761b0c
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

@ -152,7 +152,7 @@ export class ElectronPlatformService extends PlatformService {
async listFonts (): Promise<string[]> {
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({}, resolve))
fonts = fonts.map(x => x.family.trim())
return fonts
}