Romain54321 Romain54321 - 1 year ago 97
Java Question

In Itext7, how can i go through a string and see if my current font can display the string correctly?

I want to do the exact same thing as the FontSelector class in itext5 but cannot find the equivalent for it in itext7.

Is there such an equivalent Class in itext7?
Or is there another way of doing it?

Answer Source

Currently there is not FontSelector class implemented in iText7, but it is on the roadmap.

Meanwhile, you can use PdfFont#containsGlyph(char unicode) to check if a font contains the glyph which corresponds to the passed Unicode value.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download