public abstract class FontSelectorStrategy extends Object
FontSelectorStrategy
is responsible for splitting text into sub texts with one particular font. nextGlyphs()
will create next sub text and set current font.
Modifier and Type | Field and Description |
---|---|
protected FontSet |
additionalFonts |
protected int |
index |
protected FontProvider |
provider |
protected String |
text |
Modifier | Constructor and Description |
---|---|
protected |
FontSelectorStrategy(String text, FontProvider provider, FontSet additionalFonts) |
Modifier and Type | Method and Description |
---|---|
boolean |
endOfText() |
abstract PdfFont |
getCurrentFont() |
protected PdfFont |
getPdfFont(FontInfo fontInfo)
Utility method to create PdfFont.
|
abstract List<Glyph> |
nextGlyphs() |
protected String text
protected int index
protected final FontProvider provider
protected final FontSet additionalFonts
protected FontSelectorStrategy(String text, FontProvider provider, FontSet additionalFonts)
public boolean endOfText()
public abstract PdfFont getCurrentFont()
protected PdfFont getPdfFont(FontInfo fontInfo)
fontInfo
- instance of FontInfo.
FontProvider.getPdfFont(FontInfo, FontSet)
Copyright © 1998–2022 iText Group NV. All rights reserved.