Table of Contents

Class FontSelectorStrategy

Namespace
iText.Layout.Font
Assembly
itext.layout.dll

FontSelectorStrategy is responsible for splitting text into sub texts with one particular font.

[Obsolete("replaced by iText.Layout.Font.Selectorstrategy.IFontSelectorStrategy .")]
public abstract class FontSelectorStrategy
Inheritance
FontSelectorStrategy
Derived
Inherited Members

Remarks

FontSelectorStrategy is responsible for splitting text into sub texts with one particular font. NextGlyphs() will create next sub text and set current font.

Constructors

FontSelectorStrategy(string, FontProvider, FontSet)

protected FontSelectorStrategy(string text, FontProvider provider, FontSet additionalFonts)

Parameters

text string
provider FontProvider
additionalFonts FontSet

Fields

additionalFonts

protected readonly FontSet additionalFonts

Field Value

FontSet

index

protected int index

Field Value

int

provider

protected readonly FontProvider provider

Field Value

FontProvider

text

protected string text

Field Value

string

Methods

EndOfText()

public virtual bool EndOfText()

Returns

bool

GetCurrentFont()

public abstract PdfFont GetCurrentFont()

Returns

PdfFont

GetPdfFont(FontInfo)

Utility method to create PdfFont.

protected virtual PdfFont GetPdfFont(FontInfo fontInfo)

Parameters

fontInfo FontInfo

instance of FontInfo.

Returns

PdfFont

cached or just created PdfFont on success, otherwise null.

See Also

NextGlyphs()

public abstract IList<Glyph> NextGlyphs()

Returns

IList<Glyph>