Package com.itextpdf.layout.font
Class FontSelectorStrategy
java.lang.Object
com.itextpdf.layout.font.FontSelectorStrategy
- Direct Known Subclasses:
-
ComplexFontSelectorStrategy
FontSelectorStrategy
is responsible for splitting text into sub texts with one particular font. nextGlyphs()
will create next sub text and set current font.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final FontSet
protected int
protected final FontProvider
protected String
-
Constructor Summary
ModifierConstructorDescriptionprotected
FontSelectorStrategy
(String text, FontProvider provider, FontSet additionalFonts) -
Method Summary
Modifier and TypeMethodDescriptionboolean
abstract PdfFont
protected PdfFont
getPdfFont
(FontInfo fontInfo) Utility method to create PdfFont.
-
Field Details
-
text
-
index
protected int index -
provider
-
additionalFonts
-
-
Constructor Details
-
FontSelectorStrategy
-
-
Method Details
-
endOfText
public boolean endOfText() -
getCurrentFont
-
nextGlyphs
-
getPdfFont
Utility method to create PdfFont.- Parameters:
-
fontInfo
- instance of FontInfo. - Returns:
- cached or just created PdfFont on success, otherwise null.
- See Also:
-