Package com.itextpdf.layout.renderer
Class TextPreprocessingUtil
java.lang.Object
com.itextpdf.layout.renderer.TextPreprocessingUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic GlyphLine
replaceSpecialWhitespaceGlyphs
(GlyphLine line, PdfFont font) Replaces special whitespace glyphs to new whitespace ' ' glyph that has custom width.
-
Method Details
-
replaceSpecialWhitespaceGlyphs
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
-