CreateFontIndirect function Null safety gdi32

int CreateFontIndirect (
  1. Pointer<LOGFONT> lplf
)

The CreateFontIndirect function creates a logical font that has the specified characteristics. The font can subsequently be selected as the current font for any device context.

HFONT CreateFontIndirectW(
  const LOGFONTW *lplf
);

Implementation

int CreateFontIndirect(Pointer<LOGFONT> lplf) {
  final _CreateFontIndirect = _gdi32.lookupFunction<
      IntPtr Function(Pointer<LOGFONT> lplf),
      int Function(Pointer<LOGFONT> lplf)>('CreateFontIndirectW');
  return _CreateFontIndirect(lplf);
}