CreateFontW method

Pointer<HFONT__> CreateFontW(
  1. int cHeight,
  2. int cWidth,
  3. int cEscapement,
  4. int cOrientation,
  5. int cWeight,
  6. int bItalic,
  7. int bUnderline,
  8. int bStrikeOut,
  9. int iCharSet,
  10. int iOutPrecision,
  11. int iClipPrecision,
  12. int iQuality,
  13. int iPitchAndFamily,
  14. Pointer<Uint16> pszFaceName,
)

Implementation

ffi.Pointer<HFONT__> CreateFontW(
  int cHeight,
  int cWidth,
  int cEscapement,
  int cOrientation,
  int cWeight,
  int bItalic,
  int bUnderline,
  int bStrikeOut,
  int iCharSet,
  int iOutPrecision,
  int iClipPrecision,
  int iQuality,
  int iPitchAndFamily,
  ffi.Pointer<ffi.Uint16> pszFaceName,
) {
  return (_CreateFontW ??= _dylib
      .lookupFunction<_c_CreateFontW, _dart_CreateFontW>('CreateFontW'))(
    cHeight,
    cWidth,
    cEscapement,
    cOrientation,
    cWeight,
    bItalic,
    bUnderline,
    bStrikeOut,
    iCharSet,
    iOutPrecision,
    iClipPrecision,
    iQuality,
    iPitchAndFamily,
    pszFaceName,
  );
}