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 |
protected String |
text |
Modifier | Constructor and Description |
---|---|
protected |
FontSelectorStrategy(String text, FontProvider provider, FontSet tempFonts) |
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 tempFonts
protected FontSelectorStrategy(String text, FontProvider provider, FontSet tempFonts)
public boolean endOfText()
public abstract PdfFont getCurrentFont()
protected PdfFont getPdfFont(FontInfo fontInfo)
fontInfo
- instance of FontInfo.
FontProvider.getPdfFont(FontInfo, FontSet)
Copyright © 1998–2018 iText Group NV. All rights reserved.