textEncoded method
Implementation
List<int> textEncoded(
Uint8List textBytes, {
PosStyles styles = const PosStyles(),
int linesAfter = 0,
int? maxCharsPerLine,
}) {
List<int> bytes = [];
bytes += _text(textBytes, styles: styles, maxCharsPerLine: maxCharsPerLine);
// Ensure at least one line break after the text
bytes += emptyLines(linesAfter + 1);
return bytes;
}