Package com.itextpdf.layout.font
Class ComplexFontSelectorStrategy
- java.lang.Object
-
- com.itextpdf.layout.font.FontSelectorStrategy
-
- com.itextpdf.layout.font.ComplexFontSelectorStrategy
-
@Deprecated public class ComplexFontSelectorStrategy extends FontSelectorStrategy
Deprecated.was replaced byFirstMatchFontSelectorStrategy
.Complex FontSelectorStrategy split text based onCharacter.UnicodeScript
. If unicode script changes, a new font will be found. If there is no suitable font, only one notdef glyph fromFontSelector.bestMatch()
will be added.
-
-
Field Summary
Fields Modifier and Type Field Description private PdfFont
font
Deprecated.private FontSelector
selector
Deprecated.-
Fields inherited from class com.itextpdf.layout.font.FontSelectorStrategy
additionalFonts, index, provider, text
-
-
Constructor Summary
Constructors Constructor Description ComplexFontSelectorStrategy(java.lang.String text, FontSelector selector, FontProvider provider)
Deprecated.ComplexFontSelectorStrategy(java.lang.String text, FontSelector selector, FontProvider provider, FontSet additionalFonts)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description PdfFont
getCurrentFont()
Deprecated.private static boolean
isSignificantUnicodeScript(java.lang.Character.UnicodeScript unicodeScript)
Deprecated.private static boolean
isSurrogatePair(java.lang.String text, int idx)
Deprecated.java.util.List<Glyph>
nextGlyphs()
Deprecated.private int
nextSignificantIndex()
Deprecated.private java.lang.Character.UnicodeScript
nextSignificantUnicodeScript(int from)
Deprecated.-
Methods inherited from class com.itextpdf.layout.font.FontSelectorStrategy
endOfText, getPdfFont
-
-
-
-
Field Detail
-
font
private PdfFont font
Deprecated.
-
selector
private FontSelector selector
Deprecated.
-
-
Constructor Detail
-
ComplexFontSelectorStrategy
public ComplexFontSelectorStrategy(java.lang.String text, FontSelector selector, FontProvider provider, FontSet additionalFonts)
Deprecated.
-
ComplexFontSelectorStrategy
public ComplexFontSelectorStrategy(java.lang.String text, FontSelector selector, FontProvider provider)
Deprecated.
-
-
Method Detail
-
getCurrentFont
public PdfFont getCurrentFont()
Deprecated.- Specified by:
getCurrentFont
in classFontSelectorStrategy
-
nextGlyphs
public java.util.List<Glyph> nextGlyphs()
Deprecated.- Specified by:
nextGlyphs
in classFontSelectorStrategy
-
nextSignificantIndex
private int nextSignificantIndex()
Deprecated.
-
nextSignificantUnicodeScript
private java.lang.Character.UnicodeScript nextSignificantUnicodeScript(int from)
Deprecated.
-
isSignificantUnicodeScript
private static boolean isSignificantUnicodeScript(java.lang.Character.UnicodeScript unicodeScript)
Deprecated.
-
isSurrogatePair
private static boolean isSurrogatePair(java.lang.String text, int idx)
Deprecated.
-
-