AddFontResource function Null safety gdi32
The AddFontResource function adds the font resource from the specified file to the system font table. The font can subsequently be used for text output by any application.
int AddFontResourceW(
LPCWSTR Arg1
);
Implementation
int AddFontResource(Pointer<Utf16> Arg1) {
final _AddFontResource = _gdi32.lookupFunction<
Int32 Function(Pointer<Utf16> Arg1),
int Function(Pointer<Utf16> Arg1)>('AddFontResourceW');
return _AddFontResource(Arg1);
}