Class FontSelectorStrategy
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
stringprovider
FontProvideradditionalFonts
FontSet
Fields
additionalFonts
protected readonly FontSet additionalFonts
Field Value
index
protected int index
Field Value
provider
protected readonly FontProvider provider
Field Value
text
protected string text
Field Value
Methods
EndOfText()
public virtual bool EndOfText()
Returns
GetCurrentFont()
public abstract PdfFont GetCurrentFont()
Returns
GetPdfFont(FontInfo)
Utility method to create PdfFont.
protected virtual PdfFont GetPdfFont(FontInfo fontInfo)
Parameters
fontInfo
FontInfoinstance of FontInfo.
Returns
- PdfFont
cached or just created PdfFont on success, otherwise null.
- See Also
NextGlyphs()
public abstract IList<Glyph> NextGlyphs()