iText incorrectly renders custom lato font

265 views Asked by At

To register my custom lato font I use this method: PdfFontFactory.register. Afterwards I print out all fonts to verify it gets registered.

Then I use the font like so

setFont(PdfFontFactory.createRegisteredFont("lato-regular"))

However there are very subtle differences in the display using the same ttf file on my website vs my pdf.

For example, the dot above the "i" is not circular but more of a rectangle with rounded edges when using iText. Any ideas?

0

There are 0 answers