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
Describe the bug
When i use pdf package to generate pdf for Khmer language characters it show incorrect.
This is result out put from generate pdf.
សួស្ដី
To Reproduce
Future generatePdf() async {
final font = await PdfGoogleFonts.khmerRegular();
final pdf = pw.Document();
String arabicText = 'សួស្ដី';
// Convert logical Arabic text to visual order
String visualText = logicalToVisual(arabicText);
Describe the bug
When i use pdf package to generate pdf for Khmer language characters it show incorrect.
This is result out put from generate pdf.
សួស្ដី
To Reproduce
Future generatePdf() async {
final font = await PdfGoogleFonts.khmerRegular();
final pdf = pw.Document();
String arabicText = 'សួស្ដី';
// Convert logical Arabic text to visual order
String visualText = logicalToVisual(arabicText);
pdf.addPage(
pw.Page(
build: (pw.Context context) {
return pw.Center(
child: pw.Column(children: [
pw.Text(
visualText,
style: pw.TextStyle(fontSize: 24, fontFallback: [font]),
),
]));
},
),
);
// Save or print the PDF
final outputFile = File('path_to_output.pdf');
await outputFile.writeAsBytes(await pdf.save());
}
The text was updated successfully, but these errors were encountered: