concept asianfontmapper in category itext

This is an excerpt from Manning's book iText in Action, Second Edition.
You can render the text shown in figure 14.10 to PDF using three different strategies: by creating a custom FontMapper forcing the PdfGraphics2D object to use MS Arial Unicode with encoding Identity-H, by using AsianFontMapper, or by adding the glyphs as shapes instead of characters stored in a font.
A similar solution is to use the AsianFontMapper class, as is done in the Text2ToPdf2 class, which demonstrates the second strategy for rendering the text:
Graphics2D g2 = canvas.createGraphics(300, 150,
new AsianFontMapper(AsianFontMapper.JapaneseFont_Min,
AsianFontMapper.JapaneseEncoding_H));The AsianFontMapper class contains static String values corresponding with the CJK fonts discussed in section 11.3.3. One of the most difficult problems when using this approach lies with the font metrics. As far as the Java part is concerned, the font Arial Unicode is used. This choice is respected in the Text2ToPdf1 example in listing 14.20, but you use a different font in the Text2ToPdf2 example. This different font may have different metrics. If that’s the case, the size of each line will be different from what was expected. The text may even exceed the designated area.