From 16d278ace3c6a2b8a9bca21724f51d7bcb8162b9 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Mon, 29 Aug 2022 08:12:32 +0200 Subject: [PATCH] refactor(font): do not notify on Windows relates to #2690 --- src/font/install_windows.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/font/install_windows.go b/src/font/install_windows.go index 971646d7..c7b2939a 100644 --- a/src/font/install_windows.go +++ b/src/font/install_windows.go @@ -66,13 +66,5 @@ func install(font *Font) (err error) { return errors.New("unable to add font resource") } - // Notify other applications that the fonts have changed - user32 := syscall.NewLazyDLL("user32.dll") - procSendMessageW := user32.NewProc("SendMessageW") - _, _, e1 := syscall.SyscallN(procSendMessageW.Addr(), uintptr(HWND_BROADCAST), uintptr(WM_FONTCHANGE), 0, 0) - if e1 != 0 { - return errors.New("unable to broadcast font change") - } - return nil }