|
Generated by JDiff |
||||||||
| PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES | |||||||||
This file contains all the changes in documentation in the packagecom.itextpdf.kernel.fontas colored differences. Deletions are shownlike this, and additions are shown like this.
If no deletions or additions are shown in an entry, the HTML tags will be what has changed. The new HTML tags are shown in the differences. If no documentation existed, and then some was added in a later version, this change is noted in the appropriate class pages of differences, but the change is not shown on this page. Only changes in existing text are shown here. Similarly, documentation which was inherited from another class or interface is not shown here.
Note that an HTML error in the new documentation may cause the display of other documentation changes to be presented incorrectly. For instance, failure to close a tag will cause all subsequent paragraphs to be displayed differently.
Normalizes given ranges by making sure that first values in pairs are lower than second values and merges overlapping ranges in one. @param ranges a List of integer arrays, which are constituted by pairs of ints that denote each range limits. Each integer array size shall be a multiple of two. @return single merged array consisting of pairs of integers, each of them denoting a range. @deprecated The logic has been moved to com.itextpdf.io.font.TrueTypeFont.Class PdfFont, String updateSubsetPrefix(String, boolean, boolean)
Adds a unique subset prefix to be added to the font name when the font is embedded andsubsetsubsetted. @paramfontNamefontName the original font name. @paramisSubsetisSubset denotes whether font in question is subsetted, i.e. only used symbols are kept in it. @paramisEmbeddedisEmbedded denotes whether font in question is embedded into the PDF document. @return the font name prefixed with subsetprefixif isSubset and isEmbedded are true, otherwise original font name is returned intact.s
Creates PdfFont based on registered FontProgram's. Required font program is expected to be previously registered by one of the register method from PdfFontFactory. @param fontName Path to font file or Standard font name @return created font if required FontProgram was found among registered, otherwise null. @throws IOException exception is thrown in case an I/O error occurs when reading the file @see PdfFontFactory#register(String) @see PdfFontFactory#register(String, String) @see PdfFontFactory#registerFamily(String, String, String) @see PdfFontFactory#registerDirectory(String) @see PdfFontFactory#registerSystemDirectories() @see PdfFontFactory#getRegisteredFamilies() @see PdfFontFactory#getRegisteredFonts()Class PdfFontFactory, PdfFont createRegisteredFont(String, String)
Creates PdfFont based on registered FontProgram's. Required font program is expected to be previously registered by one of the register method from PdfFontFactory. @param fontName Path to font file or Standard font name @param encoding Font encoding from PdfEncodings. @return created font if required FontProgram was found among registered, otherwise null. @throws IOException exception is thrown in case an I/O error occurs when reading the file @see PdfFontFactory#register(String) @see PdfFontFactory#register(String, String) @see PdfFontFactory#registerFamily(String, String, String) @see PdfFontFactory#registerDirectory(String) @see PdfFontFactory#registerSystemDirectories() @see PdfFontFactory#getRegisteredFamilies() @see PdfFontFactory#getRegisteredFonts()Class PdfFontFactory, PdfFont createRegisteredFont(String, String, boolean)
Creates PdfFont based on registered FontProgram's. Required font program is expected to be previously registered by one of the register method from PdfFontFactory. @param fontName Path to font file or Standard font name @param encoding Font encoding from PdfEncodings. @param embedded if true font will be embedded. Note, standard font won't be embedded in any case. @return created font if required FontProgram was found among registered, otherwise null. @throws IOException exception is thrown in case an I/O error occurs when reading the file @see PdfFontFactory#register(String) @see PdfFontFactory#register(String, String) @see PdfFontFactory#registerFamily(String, String, String) @see PdfFontFactory#registerDirectory(String) @see PdfFontFactory#registerSystemDirectories() @see PdfFontFactory#getRegisteredFamilies() @see PdfFontFactory#getRegisteredFonts()Class PdfFontFactory, PdfFont createRegisteredFont(String, String, boolean, boolean)
Creates PdfFont based on registered FontProgram's. Required font program is expected to be previously registered by one of the register method from PdfFontFactory. @param fontName Path to font file or Standard font name @param encoding Font encoding from PdfEncodings. @param embedded if true font will be embedded. Note, standard font won't be embedded in any case. @param cached If true font will be cached for another PdfDocument @return created font if required FontProgram was found among registered, otherwise null. @throws IOException exception is thrown in case an I/O error occurs when reading the file @see PdfFontFactory#register(String) @see PdfFontFactory#register(String, String) @see PdfFontFactory#registerFamily(String, String, String) @see PdfFontFactory#registerDirectory(String) @see PdfFontFactory#registerSystemDirectories() @see PdfFontFactory#getRegisteredFamilies() @see PdfFontFactory#getRegisteredFonts()Class PdfFontFactory, PdfFont createRegisteredFont(String, String, boolean, int)
Creates PdfFont based on registered FontProgram's. Required font program is expected to be previously registered by one of the register method from PdfFontFactory. @param fontName Path to font file or Standard font name @param encoding Font encoding from PdfEncodings. @param embedded if true font will be embedded. Note, standard font won't be embedded in any case. @param style Font style from FontStyles. @return created font if required FontProgram was found among registered, otherwise null. @throws IOException exception is thrown in case an I/O error occurs when reading the file @see PdfFontFactory#register(String) @see PdfFontFactory#register(String, String) @see PdfFontFactory#registerFamily(String, String, String) @see PdfFontFactory#registerDirectory(String) @see PdfFontFactory#registerSystemDirectories() @see PdfFontFactory#getRegisteredFamilies() @see PdfFontFactory#getRegisteredFonts()Class PdfFontFactory, PdfFont createRegisteredFont(String, String, boolean, int, boolean)
Creates PdfFont based on registered FontProgram's. Required font program is expected to be previously registered by one of the register method from PdfFontFactory. @param fontName Path to font file or Standard font name @param encoding Font encoding from PdfEncodings. @param embedded if true font will be embedded. Note, standard font won't be embedded in any case. @param style Font style from FontStyles. @param cached If true font will be cached for another PdfDocument @return created font if required FontProgram was found among registered, otherwise null. @throws IOException exception is thrown in case an I/O error occurs when reading the file @see PdfFontFactory#register(String) @see PdfFontFactory#register(String, String) @see PdfFontFactory#registerFamily(String, String, String) @see PdfFontFactory#registerDirectory(String) @see PdfFontFactory#registerSystemDirectories() @see PdfFontFactory#getRegisteredFamilies() @see PdfFontFactory#getRegisteredFonts()
The method will update set of used glyphs with range used in subset or with all glyphs if there is no subset. This set of used glyphs is required for building width array and ToUnicode CMAP. @param longTag a set of integers, which are glyph ids that denote used glyphs. This set is updated inside of the method if needed. @deprecated use TrueTypeFont.updateUsedGlyphs(SortedSet, boolean, List)
Generates theClass PdfType0Font, PdfDictionary getCidFontType2(TrueTypeFont, PdfDictionary, String, int[])CIDFontTyte2CIDFontType2 dictionary. @param fontDescriptor theindirect reference to thefontdescriptordescriptor dictionary @param fontName a name of the font @param isType2 true, if the font is CIDFontType2 (TrueType glyphs), otherwise false, i.e. CIDFontType0 (Type1/CFF glyphs) @return fully initialized CIDFont
Generates theClass PdfType0Font, PdfDictionary getCidFontType2(TrueTypeFont, PdfDictionary, String, int[][])CIDFontTyte2CIDFontType2 dictionary. @param ttf.fontPrograma font program of this font instance @param fontDescriptor the indirect reference to the font descriptor @param fontName a name of the font @param glyphIds glyph ids used in from the font @return fully initialized CIDFont @deprecated use .getCidFont(PdfDictionary, String, boolean) instead.
Generates theCIDFontTyte2CIDFontType2 dictionary. @paramttfttf@paramafontDescriptorfonttheprogram ofindirectthisreferencefont instance @paramtofontDescriptor the fontdescriptordescriptor dictionary @param fontName a name of the font @param metrics the horizontal width metrics @return fully initialized CIDFont @deprecated will be removed in 7.2