Generated by
JDiff

com.itextpdf.io.font Documentation Differences

This file contains all the changes in documentation in the package com.itextpdf.io.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 FontProgramFactory, FontProgram createFont()

Creates a new standard Helvetica font program file. @return a FontProgram object with Helvetica font description @throws java.io.IOException exception is thrown in case an I/O error occurs when reading the file
Class FontProgramFactory, FontProgram createFont(String)

Creates a new font program. This font program can be one of the 14 built in fonts, a Type1 font referred to by an AFM or PFM file, a TrueType font or a CJK font from the Adobe Asian Font Pack. Fonts in TrueType Collections are addressed by index such as "msgothic.ttc,1". This would get the second font (indexes start at 0), in this case "MS PGothic".

The fonts are cached and if they already exist they are extracted from the cache, not parsed again.

@param fontProgram the name of the font or its location on file @return returns a new FontProgram. This font program may come from the cache @throws java.io.IOException exception is thrown in case an I/O error occurs when reading the file

Class FontProgramFactory, FontProgram createFont(String, boolean)

Creates a new font program. This font program can be one of the 14 built in fonts, a Type1 font referred to by an AFM or PFM file, a TrueType font or a CJK font from the Adobe Asian Font Pack. Fonts in TrueType Collections are addressed by index such as "msgothic.ttc,1". This would get the second font (indexes start at 0), in this case "MS PGothic".

The fonts are cached and if they already exist they are extracted from the cache, not parsed again.

@param fontProgram the name of the font or its location on file @param cached whether to to cache this font program after it has been loaded @return returns a new FontProgram. This font program may come from the cache @throws java.io.IOException exception is thrown in case an I/O error occurs when reading the file

Class FontProgramFactory, FontProgram createFont(String, int, boolean)

Creates a new TrueType font program from ttc (TrueType Collection) file. @param ttc location of TrueType Collection file (*.ttc) @param ttcIndex the index of the font file from the collection to be read @param cached true if the font comes from the cache or is added to the cache if new, false if the font is always created new @return returns a new FontProgram instance. This font may come from the cache but only if cached is true, otherwise it will always be created new @throws java.io.IOException exception is thrown in case an I/O error occurs when reading the file
Class FontProgramFactory, FontProgram createFont(byte[])

Creates a new font program. This font program can be one of the 14 built in fonts, a Type1 font referred to by an AFM or PFM file, a TrueType font or a CJK font from the Adobe Asian Font Pack. Fonts in TrueType Collections are addressed by index such as "msgothic.ttc,1". This would get the second font (indexes start at 0), in this case "MS PGothic".

The fonts are cached and if they already exist they are extracted from the cache, not parsed again.

@param fontProgram the byte contents of the font program @return returns a new FontProgram. This font program may come from the cache @throws java.io.IOException exception is thrown in case an I/O error occurs when reading the file

Class FontProgramFactory, FontProgram createFont(byte[], boolean)

Creates a new font program. This font program can be one of the 14 built in fonts, a Type 1 font referred to by an AFM or PFM file, a TrueType font or a CJK font from the Adobe Asian Font Pack. Fonts in TrueType Collections are addressed by index such as "msgothic.ttc,1". This would get the second font (indexes start at 0), in this case "MS PGothic".

The fonts are cached and if they already exist they are extracted from the cache, not parsed again.

@param fontProgram the byte contents of the font program @param cached whether to to cache this font program @return returns a new FontProgram. This font program may come from the cache @throws java.io.IOException exception is thrown in case an I/O error occurs when reading the file

Class FontProgramFactory, FontProgram createFont(byte[], int, boolean)

Creates a new TrueType font program from ttc (TrueType Collection) file bytes. @param ttc the content of a TrueType Collection file (*.ttc) @param ttcIndex the index of the font file from the collection to be read @param cached true if the font comes from the cache or is added to the cache if new, false if the font is always created new @return returns a new FontProgram instance. This font may come from the cache but only if cached is true, otherwise it will always be created new @throws java.io.IOException exception is thrown in case an I/O error occurs when reading the file
Class FontProgramFactory, FontProgram createRegisteredFont(String)

Creates a FontProgram from the font file that has been previously registered. @param fontName either a font alias, if the font file has been registered with an alias, or just a font name otherwise @return created FontProgram @throws java.io.IOException exception is thrown in case an I/O error occurs when reading the file2
Class FontProgramFactory, FontProgram createRegisteredFont(String, int)

Creates a FontProgram from the font file that has been previously registered. @param fontName either a font alias, if the font file has been registered with an alias, or just a font name otherwise @param style the style of the font to look for. Possible values are listed in FontStyles. See FontStyles.BOLD, FontStyles.ITALIC, FontStyles.NORMAL, FontStyles.BOLDITALIC, FontStyles.UNDEFINED @return created FontProgram @throws java.io.IOException exception is thrown in case an I/O error occurs when reading the file
Class FontProgramFactory, FontProgram createRegisteredFont(String, int, boolean)

Creates a FontProgram from the font file that has been previously registered. @param fontName either a font alias, if the font file has been registered with an alias, or just a font name otherwise @param style the style of the font to look for. Possible values are listed in FontStyles. See FontStyles.BOLD, FontStyles.ITALIC, FontStyles.NORMAL, FontStyles.BOLDITALIC, FontStyles.UNDEFINED @param cached whether to try to get the font program from cache @return created FontProgram @throws java.io.IOException exception is thrown in case an I/O error occurs when reading the file
Class FontProgramFactory, FontProgram createType1Font(String, String)

Creates a new Type 1 font by the corresponding AFM/PFM and PFB files @param metricsPath path to the AFM or PFM metrics file @param binaryPath path to the contents of the PFB file @return created FontProgram instance @throws java.io.IOException exception is thrown in case an I/O error occurs when reading the file
Class FontProgramFactory, FontProgram createType1Font(String, String, boolean)

Creates a new Type 1 font by the corresponding AFM/PFM and PFB files @param metricsPath path to the AFM or PFM metrics file @param binaryPath path to the contents of the PFB file @param cached specifies whether to cache the created FontProgram or not @return created FontProgram instance @throws java.io.IOException exception is thrown in case an I/O error occurs when reading the file
Class FontProgramFactory, FontProgram createType1Font(byte[], byte[])

Creates a new Type 1 font by the byte contents of the corresponding AFM/PFM and PFB files @param afm the contents of the AFM or PFM metrics file @param pfb the contents of the PFB file @return created FontProgram instance @throws java.io.IOException exception is thrown in case an I/O error occurs when reading the file
Class FontProgramFactory, FontProgram createType1Font(byte[], byte[], boolean)

Creates a new Type 1 font by the byte contents of the corresponding AFM/PFM and PFB files @param afm the contents of the AFM or PFM metrics file @param pfb the contents of the PFB file @param cached specifies whether to cache the created FontProgram or not @return created FontProgram instance @throws java.io.IOException exception is thrown in case an I/O error occurs when reading the file