I have some custom Chinese font files:
aaa.ttf bbb.ttf ccc.ttf
And I want to use them to create my PDF file using iText.
This is the code I use to create BaseFont :
String encoding = ??? BaseFont messageBaseFont = BaseFont.createFont("fonts/aaa.ttf", encoding, BaseFont.EMBEDDED);
But I do not know how to find encoding . Take aaa.ttf for example:

Is it possible to find encoding from the information? I tried some encodings like BaseFont.CP1252 or BaseFont.WINANSI , but they did not work, the output is a blank page or many characters ?????? if they are hieroglyphs.
source share