In the previous version of itext (5.5.x) I used the BaseFont
class as follows:
BaseFont bf = BaseFont.createFont ("Arial.ttf", BaseFont.WINANSI, true);
Then used the method getWidthPoint
bf.getWidthPoint (TEXT_EXAMPLE, fontSize);
But in the version of itext 7 I am not finding the BaseFont
class and also some utility that allows me to get the withPoint of a certain text.
Any help is welcome.