Invalid argument (The character is not supported by the font.)

I am developing a web application with Flutter. I also use the syncfusion_flutter_pdf package in my project. I can create a pdf file successfully in my project. However, I have to use Turkish characters in my project. For example, when I try to print the letters "ş,ğ,ı", I get an error like "Error: Invalid argument (The character is not supported by the font.): 319". How can I fix this problem?


1 Reply

RB Ravikumar Baladhandapani Syncfusion Team December 27, 2023 06:58 AM UTC

In order to display Turkish characters in the PDF, it is necessary to use a compatible font that includes those characters. You can find information on how to draw text using true type fonts in the following UG link:

https://help.syncfusion.com/flutter/pdf/working-with-text#draw-text-using-truetype-fonts


For further details on drawing Unicode text and creating PDFs in the web platform, please refer to the following KB link: https://support.syncfusion.com/kb/cross-platforms/section/1002


Loader.
Up arrow icon