iText 8.0.5 API
iText.Layout.Renderer.TextPreprocessingUtil Class Reference

Static Public Member Functions

static GlyphLine  ReplaceSpecialWhitespaceGlyphs (GlyphLine line, PdfFont font)
  Replaces special whitespace glyphs to new whitespace '\u0020' glyph that has custom width. More...
 

Member Function Documentation

◆ ReplaceSpecialWhitespaceGlyphs()

static GlyphLine iText.Layout.Renderer.TextPreprocessingUtil.ReplaceSpecialWhitespaceGlyphs ( GlyphLine  line,
PdfFont  font 
)
inlinestatic

Replaces special whitespace glyphs to new whitespace '\u0020' glyph that has custom width.

Replaces special whitespace glyphs to new whitespace '\u0020' glyph that has custom width. Special whitespace glyphs are symbols such as '\u2002', '\u2003', '\u2009' 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