iText 7 7.1.10 API
|
Reusable font set for FontProgram related data. More...
Public Member Functions |
|
FontSet () | |
Creates a new instance of FontSet. More... |
|
int | AddDirectory (String dir, bool scanSubdirectories) |
Add all the fonts in a directory and possibly its subdirectories. More... |
|
int | AddDirectory (String dir) |
Add all the fonts in a directory. More... |
|
bool | AddFont (FontProgram fontProgram, String encoding, String alias, Range unicodeRange) |
Add not supported for auto creating FontPrograms. More... |
|
bool | AddFont (FontProgram fontProgram, String encoding, String alias) |
Add not supported for auto creating FontPrograms. More... |
|
bool | AddFont (FontProgram fontProgram, String encoding) |
Add not supported for auto creating FontPrograms. More... |
|
bool | AddFont (String fontPath, String encoding, String alias, Range unicodeRange) |
Creates FontInfo , fetches iText.IO.Font.FontProgramDescriptor and adds just created FontInfo to FontSet. More... |
|
bool | AddFont (String fontPath, String encoding, String alias) |
Creates FontInfo , fetches iText.IO.Font.FontProgramDescriptor and adds just created FontInfo to FontSet. More... |
|
bool | AddFont (String fontPath, String encoding) |
Creates FontInfo , fetches iText.IO.Font.FontProgramDescriptor and adds just created FontInfo to FontSet. More... |
|
bool | AddFont (byte[] fontData, String encoding, String alias, Range unicodeRange) |
Creates FontInfo , fetches iText.IO.Font.FontProgramDescriptor and adds just created FontInfo to FontSet. More... |
|
bool | AddFont (byte[] fontData, String encoding, String alias) |
Creates FontInfo , fetches iText.IO.Font.FontProgramDescriptor and adds just created FontInfo to FontSet. More... |
|
bool | AddFont (byte[] fontData, String encoding) |
Creates FontInfo , fetches iText.IO.Font.FontProgramDescriptor and adds just created FontInfo to FontSet. More... |
|
bool | AddFont (String fontPath) |
Creates FontInfo , fetches iText.IO.Font.FontProgramDescriptor and adds just created FontInfo to FontSet. More... |
|
bool | AddFont (byte[] fontData) |
Creates FontInfo , fetches iText.IO.Font.FontProgramDescriptor and adds just created FontInfo to FontSet. More... |
|
bool | AddFont (FontInfo fontInfo, String alias, Range unicodeRange) |
Adds FontInfo with alias. More... |
|
bool | AddFont (FontInfo fontInfo, String alias) |
Adds FontInfo with alias. More... |
|
bool | AddFont (FontInfo fontInfo) |
Adds FontInfo. More... |
|
bool | Contains (String fontName) |
Search in existed fonts for PostScript name or full font name. More... |
|
ICollection< FontInfo > | Get (String fontName) |
Search in existed fonts for PostScript name or full font name. More... |
|
ICollection< FontInfo > | GetFonts () |
Gets available fonts. More... |
|
ICollection< FontInfo > | GetFonts (iText.Layout.Font.FontSet tempFonts) |
Gets union of available and temporary fonts. More... |
|
bool | IsEmpty () |
Returns true if this set contains no elements. More... |
|
int | Size () |
Returns the number of elements in this set. More... |
|
Reusable font set for FontProgram related data.
Reusable font set for FontProgram related data. Add and search fonts.
A FontSet instance could be shared for multiple threads. However FontSet filling is not thread safe operation.
|
inline |
Creates a new instance of FontSet.
|
inline |
Add all the fonts in a directory.
dir | path to directory. |
|
inline |
Add all the fonts in a directory and possibly its subdirectories.
dir | path to directory. |
scanSubdirectories | recursively scan subdirectories if true . |
|
inline |
Creates FontInfo , fetches iText.IO.Font.FontProgramDescriptor and adds just created FontInfo to FontSet.
Creates FontInfo , fetches iText.IO.Font.FontProgramDescriptor and adds just created FontInfo to FontSet. FontProvider.GetDefaultEncoding(iText.IO.Font.FontProgram) will be used to determine encoding.
fontData | font data. |
|
inline |
Creates FontInfo , fetches iText.IO.Font.FontProgramDescriptor and adds just created FontInfo to FontSet.
fontData | font data. |
encoding | preferred font encoding. |
|
inline |
Creates FontInfo , fetches iText.IO.Font.FontProgramDescriptor and adds just created FontInfo to FontSet.
Creates FontInfo , fetches iText.IO.Font.FontProgramDescriptor and adds just created FontInfo to FontSet.
Note, FontInfo.GetAlias() do not taken into account in FontInfo.Equals(System.Object). The same font with different alias will not be replaced. Alias will replace original font family in font selector algorithm.
fontData | font data. |
encoding | preferred font encoding. |
alias | font alias. |
|
inline |
Creates FontInfo , fetches iText.IO.Font.FontProgramDescriptor and adds just created FontInfo to FontSet.
Creates FontInfo , fetches iText.IO.Font.FontProgramDescriptor and adds just created FontInfo to FontSet.
Note, FontInfo.GetAlias() do not taken into account in FontInfo.Equals(System.Object). The same font with different alias will not be replaced. Alias will replace original font family in font selector algorithm.
fontData | font data. |
encoding | preferred font encoding. |
alias | font alias. |
unicodeRange | sets the specific range of characters to be used from the font |
|
inline |
Adds FontInfo.
Adds FontInfo . Could be used to fill temporary font set.
Note, FontInfo.GetAlias() do not taken into account in FontInfo.Equals(System.Object). The same font with different alias will not be replaced.
fontInfo | font info. |
|
inline |
Adds FontInfo with alias.
Adds FontInfo with alias. Could be used to fill temporary font set.
Note, FontInfo.GetAlias() do not taken into account in FontInfo.Equals(System.Object). The same font with different alias will not be replaced. Alias will replace original font family in font selector algorithm.
fontInfo | font info. |
alias | font alias. |
|
inline |
Adds FontInfo with alias.
Adds FontInfo with alias. Could be used to fill temporary font set.
Note, FontInfo.GetAlias() do not taken into account in FontInfo.Equals(System.Object). The same font with different alias will not be replaced. Alias will replace original font family in font selector algorithm.
fontInfo | font info. |
alias | font alias. |
unicodeRange | sets the specific range of characters to be used from the font |
|
inline |
Add not supported for auto creating FontPrograms.
fontProgram |
encoding | FontEncoding for creating iText.Kernel.Font.PdfFont. |
|
inline |
Add not supported for auto creating FontPrograms.
Add not supported for auto creating FontPrograms.
Note, FontInfo.GetAlias() do not taken into account in FontInfo.Equals(System.Object). The same font with different alias will not be replaced. Alias will replace original font family in font selector algorithm.
fontProgram |
encoding | FontEncoding for creating iText.Kernel.Font.PdfFont |
alias | font alias. |
|
inline |
Add not supported for auto creating FontPrograms.
Add not supported for auto creating FontPrograms.
Note, FontInfo.GetAlias() do not taken into account in FontInfo.Equals(System.Object). The same font with different alias will not be replaced. Alias will replace original font family in font selector algorithm.
fontProgram |
encoding | FontEncoding for creating iText.Kernel.Font.PdfFont |
alias | font alias. |
unicodeRange | sets the specific range of characters to be used from the font |
|
inline |
Creates FontInfo , fetches iText.IO.Font.FontProgramDescriptor and adds just created FontInfo to FontSet.
Creates FontInfo , fetches iText.IO.Font.FontProgramDescriptor and adds just created FontInfo to FontSet. FontProvider.GetDefaultEncoding(iText.IO.Font.FontProgram) will be used to determine encoding.
fontPath | path to font data. |
|
inline |
Creates FontInfo , fetches iText.IO.Font.FontProgramDescriptor and adds just created FontInfo to FontSet.
fontPath | path to font data. |
encoding | preferred font encoding. |
|
inline |
Creates FontInfo , fetches iText.IO.Font.FontProgramDescriptor and adds just created FontInfo to FontSet.
Creates FontInfo , fetches iText.IO.Font.FontProgramDescriptor and adds just created FontInfo to FontSet.
Note, FontInfo.GetAlias() do not taken into account in FontInfo.Equals(System.Object). The same font with different alias will not be replaced. Alias will replace original font family in font selector algorithm.
fontPath | path to font data. |
encoding | preferred font encoding. |
alias | font alias. |
|
inline |
Creates FontInfo , fetches iText.IO.Font.FontProgramDescriptor and adds just created FontInfo to FontSet.
Creates FontInfo , fetches iText.IO.Font.FontProgramDescriptor and adds just created FontInfo to FontSet.
Note, FontInfo.GetAlias() do not taken into account in FontInfo.Equals(System.Object). The same font with different alias will not be replaced. Alias will replace original font family in font selector algorithm.
fontPath | path to font data. |
encoding | preferred font encoding. |
alias | font alias, will replace original font family. |
unicodeRange | sets the specific range of characters to be used from the font |
|
inline |
Search in existed fonts for PostScript name or full font name.
Search in existed fonts for PostScript name or full font name.
Note, this method has O(n) complexity.
fontName | PostScript or full name. |
|
inline |
Search in existed fonts for PostScript name or full font name.
Search in existed fonts for PostScript name or full font name.
Note, this method has O(n) complexity.
fontName | PostScript or full name. |
|
inline |
Gets available fonts.
Gets available fonts.
Note, the collection is unmodifiable.
|
inline |
Gets union of available and temporary fonts.
Gets union of available and temporary fonts.
Note, the collection is unmodifiable.
tempFonts | set of temporary fonts |
|
inline |
Returns true
if this set contains no elements.
true
if this set contains no elements
|
inline |
Returns the number of elements in this set.