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, void setSubset(boolean)

Indicates if all the glyphs and widths for that particular encoding should be included in the document. When set to {@code true} only the glyphs used will be included in the font. When set to {@code false} the full font will be included and all subset ranges will be removed. @param subset new value of property subset @see #addSubsetRange(int[])

Class PdfFontFactory

This class provides helpful methods for creating fonts ready to be used in a PdfDocument

Note, just created PdfFont is almost empty until it will be flushed, because it is impossible to fulfill font data until flush.

Class PdfFontFactory, PdfFont createFont(PdfDictionary)

Creates a PdfFont by already existing font dictionary.

Note, the font won't be added to any document, until you add it to com.itextpdf.kernel.pdf.canvas.PdfCanvas. While adding to com.itextpdf.kernel.pdf.canvas.PdfCanvas, or to com.itextpdf.kernel.pdf.PdfResources the font will be made indirect implicitly.

PdfDocument.getFont method is strongly recommended if you want to get PdfFont by both existing font dictionary, or just created and hasn't flushed yet. @param fontDictionary the font dictionary to create the font from @return created PdfFont instance

Class PdfFontFactory, PdfFont createFont(byte[], String)

Created a PdfFont instance by the bytes of the underlying font program. @param fontProgram the bytes of the underlying font program @param encoding encoding the encoding of the font to be created. See PdfEncodings @return created PdfFont instance @throws IOException signals that an I/O exception has occurred.
Class PdfFontFactory, PdfFont createRegisteredFont(String)

Creates PdfFont based on registered FontProgram's. @param fontName fontName Path to font file or Standard font name @throws IOException 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. @param fontName fontName Path to font file or Standard font name @param encoding encoding Font encoding from PdfEncodings. @throws IOException 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. @param fontName fontName Path to font file or Standard font name @param encoding encoding Font encoding from PdfEncodings. @param embedded embedded if true font will be embedded. Note, standard font won't be embedded in any case. @throws IOException 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. @param fontName fontName Path to font file or Standard font name @param encoding encoding Font encoding from PdfEncodings. @param embedded embedded if true font will be embedded. Note, standard font won't be embedded in any case. @param cached cached If true font will be cached for another PdfDocument @throws IOException 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. @param fontName fontName Path to font file or Standard font name @param encoding encoding Font encoding from PdfEncodings. @param embedded embedded if true font will be embedded. Note, standard font won't be embedded in any case. @param style style Font style from FontStyles. @throws IOException 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. @param fontName fontName Path to font file or Standard font name @param encoding encoding Font encoding from PdfEncodings. @param embedded embedded if true font will be embedded. Note, standard font won't be embedded in any case. @param style style Font style from FontStyles. @param cached cached If true font will be cached for another PdfDocument @throws IOException 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()