Open helper-bud opened 3 months ago
Kemon acho vai ,it seems same to me :D I don't know the solution i just wanted to say hi !
Oh you should look at this. I guess for Bangla ,help needed. #219
solved it. using unicode to bijoy. suppose this is the text : innerLoop.grpnam.toString() in this code :
pw.Text( "${innerLoop.groupid} - ${CodeUtil.unicodeToBijoyText(innerLoop.grpnam.toString())}", style: pw.TextStyle( font: banglaFontTtf, fontSize: 6, )
static String unicodeToBijoyText(String text) {
return unicodeToBijoy(utf8.decode(utf8.encode(text)));
}
i found that solution by on the day when i found it. but posting it hope it helps.
getting this bangla text.
want this bangla text.
![Screenshot 2024-03-30 144903](https://github.com/DavBfr/dart_pdf/assets/96073081/a77b653b-fe5c-435e-a915-79d2dd418699)
when i am copying from the generated pdf, and pasting some where else the text gets right.
code : final pdf = pw.Document(); var logger = Logger();
pw.Table( border: pw.TableBorder.all(), children: [ pw.TableRow( pw.Text("${innerLoop.groupid} - ${innerLoop.grpnam}", style: pw.TextStyle( font: banglaFontTtf, fontSize: 6, ), textAlign: pw.TextAlign.center, maxLines: 1), ) ]
)