Generated by
JDiff

com.itextpdf.kernel.font Documentation Differences

This file contains all the changes in documentation in the package com.itextpdf.kernel.font as colored differences. Deletions are shown like 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.

Class PdfFont, int[] compactRanges(List)

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 and subset subsetted. @param fontName fontName the original font name. @param isSubset isSubset denotes whether font in question is subsetted, i.e. only used symbols are kept in it. @param isEmbedded isEmbedded denotes whether font in question is embedded into the PDF document. @return the font name prefixed with subset prefix if isSubset and isEmbedded are true, otherwise original font name is returned intact. s

Class PdfFontFactory, PdfFont createRegisteredFont(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 @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()

Class PdfTrueTypeFont, void addRangeUni(Set)

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)

Class PdfType0Font, PdfDictionary getCidFont(PdfDictionary, String, boolean)

Generates the CIDFontTyte2 CIDFontType2 dictionary. @param fontDescriptor the indirect reference to the font descriptor descriptor 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
Class PdfType0Font, PdfDictionary getCidFontType2(TrueTypeFont, PdfDictionary, String, int[])

Generates the CIDFontTyte2 CIDFontType2 dictionary. @param ttf .fontProgram a 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.
Class PdfType0Font, PdfDictionary getCidFontType2(TrueTypeFont, PdfDictionary, String, int[][])

Generates the CIDFontTyte2 CIDFontType2 dictionary. @param ttf ttf @param a fontDescriptor font the program of indirect this reference font instance @param to fontDescriptor the font descriptor descriptor 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