You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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();
// 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?
The text was updated successfully, but these errors were encountered: