public class FontSelector extends Object
Constructor and Description |
---|
FontSelector(Collection<FontInfo> allFonts, List<String> fontFamilies, FontCharacteristics fc)
Create new FontSelector instance.
|
Modifier and Type | Method and Description |
---|---|
FontInfo |
bestMatch()
The best font match.
|
protected Comparator<FontInfo> |
getComparator(List<String> fontFamilies, FontCharacteristics fc) |
Iterable<FontInfo> |
getFonts()
Sorted set of fonts.
|
public FontSelector(Collection<FontInfo> allFonts, List<String> fontFamilies, FontCharacteristics fc)
allFonts
- Unsorted set of all available fonts.
fontFamilies
- sorted list of preferred font families.
public final FontInfo bestMatch()
getFonts()
doesn't contain requested glyphs, this font will be used.
protected Comparator<FontInfo> getComparator(List<String> fontFamilies, FontCharacteristics fc)
Copyright © 1998–2017 iText Group NV. All rights reserved.