drawGetTextEncoding method

String? drawGetTextEncoding()

DrawGetTextEncoding() returns a null-terminated string which specifies the code set used for text annotations. The string must be freed by the user once it is no longer required.

Implementation

String? drawGetTextEncoding() {
  final Pointer<Char> encodingPtr =
      _magickWandBindings.DrawGetTextEncoding(_wandPtr);
  final String? encoding = encodingPtr.toNullableString();
  _magickRelinquishMemory(encodingPtr.cast());
  return encoding;
}