I'm using Apache PDFBox to create a PDF with form fields and embed a custom TrueType font (FreeSans.ttf) with subsetting enabled. However, when I set a value in the text field, it displays gibberish characters instead of the actual text.
Versions : 2.x, 3.x
Fonts: Any fonts loaded from external source except 14 Standard Fonts
Reproducible Example: https://gist.github.com/kirankandel/20daf975db94167eb950987980c746ac