hmm, nope, that doesn't seem to work either.
What I'm wrapping is the Win32 API ChooseFont() which includes a CHOOSEFONT struct and a LOGFONT stuct. Everything works apart from the .lfFaceName. Unless, I use the last method in my original post (and then shaft the memory in the process).
You should be able to pass a face name to the ChooseFont() function via the CHOOSEFONT struct, but, BMax don't like it and the API don't like BMax.
Been driving me nuts for the last couple of days now (on and off).
What I'm wrapping is the Win32 API ChooseFont() which includes a CHOOSEFONT struct and a LOGFONT stuct. Everything works apart from the .lfFaceName. Unless, I use the last method in my original post (and then shaft the memory in the process).
You should be able to pass a face name to the ChooseFont() function via the CHOOSEFONT struct, but, BMax don't like it and the API don't like BMax.
Been driving me nuts for the last couple of days now (on and off).