mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-30 00:09:54 +00:00
parent
918f06b86a
commit
c75294e03a
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user