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 int |
index |
protected FontProvider |
provider |
protected FontSet |
tempFonts
Deprecated.
This field will be renamed to
additionalFonts in iText Core 7.2.
|
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
@Deprecated protected final FontSet tempFonts
additionalFonts
in iText Core 7.2.
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–2023 iText Group NV. All rights reserved.