windowsfont method
Future<bool>
windowsfont(
- int x,
- int y,
- int fontheight,
- int rotation,
- int fontstyle,
- int fontunderline,
- String szFaceName,
- String content,
override
Prints text using a Windows TrueType font (Windows-only).
Implementation
@override
Future<bool> windowsfont(
int x,
int y,
int fontheight,
int rotation,
int fontstyle,
int fontunderline,
String szFaceName,
String content,
) async {
if (defaultTargetPlatform != TargetPlatform.windows) return false;
return await methodChannel.invokeMethod<bool>('windowsfont', <String, dynamic>{
'x': x,
'y': y,
'fontheight': fontheight,
'rotation': rotation,
'fontstyle': fontstyle,
'fontunderline': fontunderline,
'szFaceName': szFaceName,
'content': content,
}) ??
false;
}