esc_pos_bluetooth
esc_pos_bluetooth copied to clipboard
Print word in a "New Line" instead of breaking the word.
Hi, I'm facing some issues while printing longer text. For example, if I try to print Old MacDonald Had A Farm it prints like
Old MacDonald Ha
d A Farm
final Ticket ticket = Ticket(PaperSize.mm58);
ticket.text('Old MacDonald Had A Farm',
styles: PosStyles(align: PosAlign.center));
Is there any way I can print Had to a new line instead of splitting the word? like
Old MacDonald
Had A Farm
Thank you.
have you tried using \n to break a line?
I have same issue. I need auto wrap text with correct position.
Hi, what I did was, based on the font and number of characters it can hold per line, I add \n in-between the sentence.