-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
Add AddFontResource on windows so that after installation, you can find the font in other applications.
gdi32dll := syscall.NewLazyDLL("Gdi32.dll")
procAddFontResource := gdi32dll.NewProc("AddFontResourceW")
filePath, _:= syscall.UTF16PtrFromString("C://.../xxx.ttf")
_, _, _ = procAddFontResource.Call(uintptr(unsafe.Pointer(filePath)))Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels