Skip to content

Commit

Permalink
fixed #4686, fixed #6506 - font lookup on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Jun 27, 2022
1 parent 918f06b commit c75294e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tabby-electron/src/services/platform.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,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({}, resolve))
let fonts = await new Promise<any[]>(resolve => fontManager.getAvailableFonts(resolve))
fonts = fonts.map(x => x.family.trim())
return fonts
}
Expand Down

0 comments on commit c75294e

Please sign in to comment.