windowsfont method

  1. @override
Future<bool> windowsfont(
  1. int x,
  2. int y,
  3. int fontheight,
  4. int rotation,
  5. int fontstyle,
  6. int fontunderline,
  7. String szFaceName,
  8. 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;
}