iText 8.0.5 API
|
The class defines complex implementation of IFontSelectorStrategy which based on the following algorithm: 1. More...
Public Member Functions |
|
AbstractFontSelectorStrategy (FontProvider fontProvider, FontSelector fontSelector, FontSet additionalFonts) | |
Creates a new instance of AbstractFontSelectorStrategy. More... |
|
virtual IList< Tuple2< GlyphLine, PdfFont > > | GetGlyphLines (String text) |
Converts text into glyphs with the best matching font. More... |
|
Package Functions |
|
abstract bool | IsCurrentFontCheckRequired () |
If it is necessary to provide a check that the best font for passed symbol equals to the current font. More... |
|
virtual PdfFont | MatchFont (int codePoint, FontSelector fontSelector, FontProvider fontProvider, FontSet additionalFonts) |
Finds the best font which matches passed symbol. More... |
|
The class defines complex implementation of IFontSelectorStrategy which based on the following algorithm: 1.
The class defines complex implementation of IFontSelectorStrategy which based on the following algorithm:
Algorithm takes care of the case when there is no matched font for symbol or when diacritic from another font is used (previous symbol will be processed by diacritic's font).
|
inline |
Creates a new instance of AbstractFontSelectorStrategy.
fontProvider | the font provider |
fontSelector | the font selector |
additionalFonts | the set of fonts to be used additionally to the fonts added to font provider. |
|
inlinevirtual |
Converts text into glyphs with the best matching font.
Implements iText.Layout.Font.Selectorstrategy.IFontSelectorStrategy.
|
packagepure virtual |
If it is necessary to provide a check that the best font for passed symbol equals to the current font.
If it is necessary to provide a check that the best font for passed symbol equals to the current font. Result of checking is used to split text into parts in case if inequality.
true
if check is needed, otherwise false
Implemented in iText.Layout.Font.Selectorstrategy.FirstMatchFontSelectorStrategy, and iText.Layout.Font.Selectorstrategy.BestMatchFontSelectorStrategy.
|
inlinepackagevirtual |
Finds the best font which matches passed symbol.
codePoint | the symbol to match |
fontSelector | the font selector |
fontProvider | the font provider |
additionalFonts | the addition fonts |