Table of Contents

Class TextPreprocessingUtil

Namespace
iText.Layout.Renderer
Assembly
itext.layout.dll
public sealed class TextPreprocessingUtil
Inheritance
TextPreprocessingUtil
Inherited Members

Methods

ReplaceSpecialWhitespaceGlyphs(GlyphLine, PdfFont)

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

public static GlyphLine ReplaceSpecialWhitespaceGlyphs(GlyphLine line, PdfFont font)

Parameters

line GlyphLine

the string for preprocessing

font PdfFont

the font that will be used when displaying the string

Returns

GlyphLine

old line with new special whitespace glyphs

Remarks

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'.