drawSetFont method

bool drawSetFont(
  1. String fontName
)

DrawSetFont() sets the fully-specified font to use when annotating with text.

  • fontName : font name

Implementation

bool drawSetFont(String fontName) => using(
      (Arena arena) => _magickWandBindings.DrawSetFont(
        _wandPtr,
        fontName.toNativeUtf8(allocator: arena).cast(),
      ),
    ).toBool();