drawSetTextEncoding method

void drawSetTextEncoding(
  1. String encoding
)

DrawSetTextEncoding() specifies the code set to use for text annotations. The only character encoding which may be specified at this time is "UTF-8" for representing Unicode as a sequence of bytes. Specify an empty string to set text encoding to the system's default. Successful text annotation using Unicode may require fonts designed to support Unicode.

  • encoding : character string specifying text encoding

Implementation

void drawSetTextEncoding(String encoding) => using(
      (Arena arena) => _magickWandBindings.DrawSetTextEncoding(
        _wandPtr,
        encoding.toNativeUtf8(allocator: arena).cast(),
      ),
    );