Skip to content

Conversation

@spddl
Copy link

@spddl spddl commented Mar 13, 2021

example:

package main

import (
	"unsafe"

	"github.com/lxn/win"
)

func main() {
	var lf = win.LOGFONT{}
	cfont := win.CHOOSEFONT{
		HwndOwner: win.HWND(0),
		LpLogFont: &lf,
		Flags:     win.CF_INITTOLOGFONTSTRUCT | win.CF_SCREENFONTS | win.CF_NOSCRIPTSEL,
		HInstance: win.HWND(0),
	}
	cfont.LStructSize = uint32(unsafe.Sizeof(cfont))

	win.ChooseFont(&cfont)
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant