ChooseFont function Null safety comdlg32

int ChooseFont (
  1. Pointer<CHOOSEFONT> lpcf
)

Creates a Font dialog box that enables the user to choose attributes for a logical font. These attributes include a font family and associated font style, a point size, effects (underline, strikeout, and text color), and a script (or character set).

BOOL WINAPI ChooseFontW(
  _Inout_ LPCHOOSEFONT lpcf
);

Implementation

int ChooseFont(Pointer<CHOOSEFONT> lpcf) {
  final _ChooseFont = _comdlg32.lookupFunction<
      Int32 Function(Pointer<CHOOSEFONT> lpcf),
      int Function(Pointer<CHOOSEFONT> lpcf)>('ChooseFontW');
  return _ChooseFont(lpcf);
}