DavBfr / dart_pdf

Pdf creation module for dart/flutter
https://pub.dev/packages/pdf
Apache License 2.0
1.42k stars 632 forks source link

Flutter Hindi/Marathi text issue in PDF #1518

Open amitatale opened 1 year ago

amitatale commented 1 year ago

I am developing app in flutter text. i want to show all my Hindi/Marathi text in flutter pdf. but some text are not working in pdf.

I am using this font for this: pdf: ^3.10.4

code: final fontData = (await rootBundle.load('assets/Hind-Medium.ttf')).buffer.asUint8List();

final pdfFont = pw.Font.ttf(fontData.buffer.asByteData());

// Create a PDF document final pdf = pw.Document();

PFA WhatsApp Image 2023-09-17 at 8 29 02 PM (1) (1) attachmentL

jitendraAn commented 6 months ago

I am facing the same issue with Hindi text.

Screenshot_20240429_123553

MathanM commented 5 months ago

I am also facing the same issue for all indian languages

niraj8763 commented 1 month ago

same issue ..any solution is there