Class TextPreprocessingUtil

java.lang.Object
com.itextpdf.layout.renderer.TextPreprocessingUtil

public final class TextPreprocessingUtil extends Object
  • Method Details

    • replaceSpecialWhitespaceGlyphs

      public static GlyphLine replaceSpecialWhitespaceGlyphs (GlyphLine line, PdfFont font)
      Replaces special whitespace glyphs to new whitespace ' ' glyph that has custom width. Special whitespace glyphs are symbols such as ' ', ' ', ' ' and '\t'.
      Parameters:
      line - the string for preprocessing
      font - the font that will be used when displaying the string
      Returns:
      old line with new special whitespace glyphs