Hii, In my project i want to print the text in Marathi Language is it possible.
Here is my code
Future printMarathiText() async {
final profile = await CapabilityProfile.load();
final printer = NetworkPrinter(PaperSize.mm80, profile);
List bytes = [];
final generator = Generator(PaperSize.mm80, profile);
await connectToPrinter();
bytes += generator.text('मराठी मध्ये टेक्स्ट प्रिंट करणारा प्रिंटर',
styles: const PosStyles(
align: PosAlign.center,
height: PosTextSize.size1,
width: PosTextSize.size1,
),
linesAfter: 1);
// printer.text('मराठी मध्ये टेक्स्ट प्रिंट करणारा प्रिंटर');
printer.cut();
printer.disconnect();
}
i am getting error as ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Invalid argument (string): Contains invalid characters.: "मराठी मध्ये टेक् स्ट प्रिंट करणारा प्रिंटर" .
Is there an solution for this?
Hii, In my project i want to print the text in Marathi Language is it possible. Here is my code printMarathiText() async {
final profile = await CapabilityProfile.load();
final printer = NetworkPrinter(PaperSize.mm80, profile);
List bytes = [];
final generator = Generator(PaperSize.mm80, profile);
await connectToPrinter();
Future
// printer.text('मराठी मध्ये टेक्स्ट प्रिंट करणारा प्रिंटर');
} i am getting error as ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Invalid argument (string): Contains invalid characters.: "मराठी मध्ये टेक् स्ट प्रिंट करणारा प्रिंटर" . Is there an solution for this?